Skip to content

Commit

Permalink
fix: wrong import
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Mangeonjean committed Dec 4, 2023
1 parent b4a3e0c commit 97c1b87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service-override/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { IColorCustomizations, IThemeScopedColorCustomizations } from 'vs/workbe
import { IUserDataProfilesService } from 'vs/platform/userDataProfile/common/userDataProfile'
import { IPolicyService } from 'vs/platform/policy/common/policy'
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation'
import type * as vscode from 'vscode'
import { IUserDataProfileService } from 'vs/workbench/services/userDataProfile/common/userDataProfile'
import { IRemoteAgentService } from 'vs/workbench/services/remote/common/remoteAgentService'
import { IUriIdentityService } from 'vs/platform/uriIdentity/common/uriIdentity'
Expand All @@ -32,6 +31,7 @@ import { AbstractWorkspaceEditingService } from 'vs/workbench/services/workspace
import { URI } from 'vs/base/common/uri'
import 'vs/workbench/api/common/configurationExtensionPoint'
import { IBrowserWorkbenchEnvironmentService } from 'vs/workbench/services/environment/browser/environmentService'
import { IDisposable } from 'vs/base/common/lifecycle'
import getFileServiceOverride, { initFile } from './files'
import { memoizedConstructor, unsupported } from '../tools'
import { registerServiceInitializePreParticipant } from '../lifecycle'
Expand Down Expand Up @@ -61,7 +61,7 @@ async function getUserConfiguration (): Promise<string> {
return (await StandaloneServices.get(IFileService).readFile(userDataProfilesService.defaultProfile.settingsResource)).value.toString()
}

function onUserConfigurationChange (callback: () => void): vscode.Disposable {
function onUserConfigurationChange (callback: () => void): IDisposable {
const userDataProfilesService = StandaloneServices.get(IUserDataProfilesService)
return StandaloneServices.get(IFileService).onDidFilesChange(e => {
if (e.affects(userDataProfilesService.defaultProfile.settingsResource)) {
Expand Down

0 comments on commit 97c1b87

Please sign in to comment.