提交 6f440fcb 编写于 作者: M Matt Bierner

Register a single workspacesymbol provider for js/ts

Avoid potentially making two workspace symbol: one for js and one for ts
上级 4096b5d6
......@@ -77,7 +77,6 @@ export default class LanguageProvider extends Disposable {
this._register((await import('./features/signatureHelp')).register(selector, this.client));
this._register((await import('./features/tagClosing')).register(selector, this.description.id, this.client));
this._register((await import('./features/typeDefinitions')).register(selector, this.client));
this._register((await import('./features/workspaceSymbols')).register(this.client, this.description.modeIds));
}
private configurationChanged(): void {
......
......@@ -11,7 +11,6 @@
import * as vscode from 'vscode';
import { DiagnosticKind } from './features/diagnostics';
import FileConfigurationManager from './features/fileConfigurationManager';
import { register as registerUpdatePathsOnRename } from './features/updatePathsOnRename';
import LanguageProvider from './languageProvider';
import * as Proto from './protocol';
import * as PConst from './protocol.const';
......@@ -100,6 +99,8 @@ export default class TypeScriptServiceClientHost extends Disposable {
}
this._register(registerUpdatePathsOnRename(this.client, this.fileConfigurationManager, uri => this.handles(uri)));
import('./features/workspaceSymbols').then(module =>
this._register(module.register(this.client, allModeIds)));
this.client.ensureServiceStarted();
this.client.onReady(() => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册