提交 f3662d06 编写于 作者: J Johannes Rieken

register label service in shell

上级 7d7c0a74
......@@ -98,7 +98,7 @@ import { MulitExtensionManagementService } from 'vs/platform/extensionManagement
import { ExtensionManagementServerService } from 'vs/workbench/services/extensions/node/extensionManagementServerService';
import { DefaultURITransformer } from 'vs/base/common/uriIpc';
import { ExtensionGalleryService } from 'vs/platform/extensionManagement/node/extensionGalleryService';
import { ILabelService } from 'vs/platform/label/common/label';
import { ILabelService, LabelService } from 'vs/platform/label/common/label';
import { IDownloadService } from 'vs/platform/download/common/download';
import { DownloadService } from 'vs/platform/download/node/downloadService';
import { runWhenIdle } from 'vs/base/common/async';
......@@ -121,7 +121,6 @@ export interface ICoreServices {
export class WorkbenchShell extends Disposable {
private storageService: IStorageService;
private environmentService: IEnvironmentService;
private labelService: ILabelService;
private logService: ILogService;
private configurationService: IConfigurationService;
private contextService: IWorkspaceContextService;
......@@ -325,7 +324,7 @@ export class WorkbenchShell extends Disposable {
serviceCollection.set(IWorkspaceContextService, this.contextService);
serviceCollection.set(IConfigurationService, this.configurationService);
serviceCollection.set(IEnvironmentService, this.environmentService);
serviceCollection.set(ILabelService, this.labelService);
serviceCollection.set(ILabelService, new SyncDescriptor(LabelService));
serviceCollection.set(ILogService, this._register(this.logService));
serviceCollection.set(IStorageService, this.storageService);
......
......@@ -114,7 +114,6 @@ import { IExtensionUrlHandler, ExtensionUrlHandler } from 'vs/workbench/services
import { ContextViewService } from 'vs/platform/contextview/browser/contextViewService';
import { WorkbenchThemeService } from 'vs/workbench/services/themes/electron-browser/workbenchThemeService';
import { IWorkbenchThemeService } from 'vs/workbench/services/themes/common/workbenchThemeService';
import { LabelService, ILabelService } from 'vs/platform/label/common/label';
import { IFileDialogService } from 'vs/platform/dialogs/common/dialogs';
import { FileDialogService } from 'vs/workbench/services/dialogs/electron-browser/dialogService';
......@@ -335,10 +334,6 @@ export class Workbench extends Disposable implements IPartService {
// Clipboard
serviceCollection.set(IClipboardService, new ClipboardService());
// Uri Display
const labelService = new LabelService(this.environmentService, this.contextService);
serviceCollection.set(ILabelService, labelService);
// Status bar
this.statusbarPart = this.instantiationService.createInstance(StatusbarPart, Identifiers.STATUSBAR_PART);
this._register(toDisposable(() => this.statusbarPart.shutdown()));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册