Don't try to enable proposed API's on stable

This commit is contained in:
Aleksey Kladov 2020-03-24 09:31:42 +01:00
parent f9494f1147
commit be4977da7f
3 changed files with 17 additions and 21 deletions

View file

@ -99,8 +99,10 @@ export async function createClient(config: Config, serverPath: string): Promise<
// Note that while the CallHierarchyFeature is stable the LSP protocol is not.
res.registerFeature(new CallHierarchyFeature(res));
if (config.highlightingSemanticTokens) {
res.registerFeature(new SemanticTokensFeature(res));
if (config.package.enableProposedApi) {
if (config.highlightingSemanticTokens) {
res.registerFeature(new SemanticTokensFeature(res));
}
}
return res;