fix duplicated workspace symbols provider

This commit is contained in:
Qiming Zhao 2020-10-05 19:00:15 +08:00
parent 7999ac085e
commit 20d2b6fd32

View file

@ -157,11 +157,13 @@ export default class LanguageProvider {
new DocumentSymbolProvider(client))
)
this.disposables.push(
languages.registerWorkspaceSymbolProvider(
languageIds,
new WorkspaceSymbolProvider(client, languageIds))
)
if (this.description.id == 'typescript') {
this.disposables.push(
languages.registerWorkspaceSymbolProvider(
languageIds,
new WorkspaceSymbolProvider(client, languageIds))
)
}
this.disposables.push(
languages.registerRenameProvider(