From 20d2b6fd32d865d472c9bdbf12a666c40702e053 Mon Sep 17 00:00:00 2001 From: Qiming Zhao Date: Mon, 5 Oct 2020 19:00:15 +0800 Subject: [PATCH] fix duplicated workspace symbols provider --- src/server/languageProvider.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/server/languageProvider.ts b/src/server/languageProvider.ts index b394ad9..5964ebf 100644 --- a/src/server/languageProvider.ts +++ b/src/server/languageProvider.ts @@ -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(