From 7a832cdf6b9efef2e6c45f56a4385adddd493ea6 Mon Sep 17 00:00:00 2001 From: kjeremy Date: Fri, 14 Feb 2020 11:48:27 -0500 Subject: Do not register all proposed features Instead only opt-in to CallHierarchy since it has a vscode API but LSP support is still proposed. Discovered while working on SemanticTokens which does not have a vscode API and is still in the proposed state. Somehow enabling it would crash the language server. See https://github.com/microsoft/vscode-languageserver-node/issues/572 --- editors/code/src/client.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'editors/code/src') diff --git a/editors/code/src/client.ts b/editors/code/src/client.ts index 2e3d4aba2..d2759969b 100644 --- a/editors/code/src/client.ts +++ b/editors/code/src/client.ts @@ -3,6 +3,7 @@ import * as lc from 'vscode-languageclient'; import { window, workspace } from 'vscode'; import { Config } from './config'; import { ensureLanguageServerBinary } from './installation/language_server'; +import { CallHierarchyFeature } from 'vscode-languageclient/lib/callHierarchy.proposed'; export async function createClient(config: Config): Promise { // '.' Is the fallback if no folder is open @@ -78,6 +79,10 @@ export async function createClient(config: Config): Promise