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

register label service in shell

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