提交 23edcfe3 编写于 作者: M Martin Aeschlimann

workbench: move ThemeService creation ahead of UI services

上级 803ec5b6
......@@ -435,6 +435,10 @@ export class Workbench implements IPartService {
this.toDispose.push(this.lifecycleService.onShutdown(this.shutdownComponents, this));
// Theme Service
this.themeService = this.instantiationService.createInstance(WorkbenchThemeService, document.body);
serviceCollection.set(IWorkbenchThemeService, this.themeService);
// Services we contribute
serviceCollection.set(IPartService, this);
......@@ -526,10 +530,6 @@ export class Workbench implements IPartService {
this.configurationEditingService = this.instantiationService.createInstance(ConfigurationEditingService);
serviceCollection.set(IConfigurationEditingService, this.configurationEditingService);
// Theme Service
this.themeService = this.instantiationService.createInstance(WorkbenchThemeService, document.body);
serviceCollection.set(IWorkbenchThemeService, this.themeService);
// Configuration Resolver
const workspace = this.contextService.getWorkspace();
serviceCollection.set(IConfigurationResolverService, new SyncDescriptor(ConfigurationResolverService, workspace ? workspace.resource : null, process.env));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册