about summary refs log tree commit diff
path: root/editors/code/src/client.ts
diff options
context:
space:
mode:
authorAleksey Kladov <aleksey.kladov@gmail.com>2020-03-24 09:31:42 +0100
committerAleksey Kladov <aleksey.kladov@gmail.com>2020-03-24 09:34:54 +0100
commitbe4977da7fa78ae386b595ef2227d034ebb3a7e5 (patch)
tree2f7b655ad1b2b6bdec281e498632c1c89f4333dc /editors/code/src/client.ts
parentf9494f114798f66b5f2174cf518a2951a82571d3 (diff)
downloadrust-be4977da7fa78ae386b595ef2227d034ebb3a7e5.tar.gz
rust-be4977da7fa78ae386b595ef2227d034ebb3a7e5.zip
Don't try to enable proposed API's on stable
Diffstat (limited to 'editors/code/src/client.ts')
-rw-r--r--editors/code/src/client.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/editors/code/src/client.ts b/editors/code/src/client.ts
index 08d821dd0a8..82ca749f306 100644
--- a/editors/code/src/client.ts
+++ b/editors/code/src/client.ts
@@ -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;