Path: blob/main/src/vs/workbench/services/configurationResolver/electron-browser/configurationResolverService.ts
3296 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { INativeWorkbenchEnvironmentService } from '../../environment/electron-browser/environmentService.js';6import { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';7import { ICommandService } from '../../../../platform/commands/common/commands.js';8import { IWorkspaceContextService } from '../../../../platform/workspace/common/workspace.js';9import { IEditorService } from '../../editor/common/editorService.js';10import { IQuickInputService } from '../../../../platform/quickinput/common/quickInput.js';11import { IConfigurationResolverService } from '../common/configurationResolver.js';12import { InstantiationType, registerSingleton } from '../../../../platform/instantiation/common/extensions.js';13import { BaseConfigurationResolverService } from '../browser/baseConfigurationResolverService.js';14import { ILabelService } from '../../../../platform/label/common/label.js';15import { IShellEnvironmentService } from '../../environment/electron-browser/shellEnvironmentService.js';16import { IPathService } from '../../path/common/pathService.js';17import { IExtensionService } from '../../extensions/common/extensions.js';18import { IStorageService } from '../../../../platform/storage/common/storage.js';1920export class ConfigurationResolverService extends BaseConfigurationResolverService {2122constructor(23@IEditorService editorService: IEditorService,24@INativeWorkbenchEnvironmentService environmentService: INativeWorkbenchEnvironmentService,25@IConfigurationService configurationService: IConfigurationService,26@ICommandService commandService: ICommandService,27@IWorkspaceContextService workspaceContextService: IWorkspaceContextService,28@IQuickInputService quickInputService: IQuickInputService,29@ILabelService labelService: ILabelService,30@IShellEnvironmentService shellEnvironmentService: IShellEnvironmentService,31@IPathService pathService: IPathService,32@IExtensionService extensionService: IExtensionService,33@IStorageService storageService: IStorageService,34) {35super({36getAppRoot: (): string | undefined => {37return environmentService.appRoot;38},39getExecPath: (): string | undefined => {40return environmentService.execPath;41},42}, shellEnvironmentService.getShellEnv(), editorService, configurationService, commandService,43workspaceContextService, quickInputService, labelService, pathService, extensionService, storageService);44}45}4647registerSingleton(IConfigurationResolverService, ConfigurationResolverService, InstantiationType.Delayed);484950