about summary refs log tree commit diff
path: root/editors/code/src/main.ts
diff options
context:
space:
mode:
authorAleksey Kladov <aleksey.kladov@gmail.com>2020-02-26 16:03:30 +0100
committerAleksey Kladov <aleksey.kladov@gmail.com>2020-02-26 16:03:30 +0100
commit225ef6dea24a0e8766fdfd677fb98a15095fa7e5 (patch)
treee88856b7328e69823c41b4ef305f8ae277c9aba5 /editors/code/src/main.ts
parent8c0d0894b66ceb1800f09df246ba8fb73b9ceccb (diff)
downloadrust-225ef6dea24a0e8766fdfd677fb98a15095fa7e5.tar.gz
rust-225ef6dea24a0e8766fdfd677fb98a15095fa7e5.zip
Config to switch to semantic tokens
Diffstat (limited to 'editors/code/src/main.ts')
-rw-r--r--editors/code/src/main.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts
index 424ff1ac3d6..ecf53cf775f 100644
--- a/editors/code/src/main.ts
+++ b/editors/code/src/main.ts
@@ -89,7 +89,9 @@ export async function activate(context: vscode.ExtensionContext) {
 
     activateStatusDisplay(ctx);
 
-    activateHighlighting(ctx);
+    if (!ctx.config.highlightingSemanticTokens) {
+        activateHighlighting(ctx);
+    }
     activateInlayHints(ctx);
 }