提交 1c1e9a72 编写于 作者: M Matt Bierner

Don't force creation of serviceClientHost from ManagedFileContextManager eagerly

上级 bcdeb87b
...@@ -27,7 +27,14 @@ export function activate( ...@@ -27,7 +27,14 @@ export function activate(
const lazyClientHost = createLazyClientHost(context, plugins, commandManager); const lazyClientHost = createLazyClientHost(context, plugins, commandManager);
context.subscriptions.push(new ManagedFileContextManager(resource => lazyClientHost.value.serviceClient.normalizePath(resource))); context.subscriptions.push(new ManagedFileContextManager(resource => {
// Don't force evaluation here.
if (lazyClientHost.hasValue) {
return lazyClientHost.value.serviceClient.normalizePath(resource);
}
return null;
}));
registerCommands(commandManager, lazyClientHost); registerCommands(commandManager, lazyClientHost);
context.subscriptions.push(new TypeScriptTaskProviderManager(lazyClientHost.map(x => x.serviceClient))); context.subscriptions.push(new TypeScriptTaskProviderManager(lazyClientHost.map(x => x.serviceClient)));
context.subscriptions.push(vscode.languages.setLanguageConfiguration(languageModeIds.jsxTags, languageConfigurations.jsxTags)); context.subscriptions.push(vscode.languages.setLanguageConfiguration(languageModeIds.jsxTags, languageConfigurations.jsxTags));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册