From 225ef6dea24a0e8766fdfd677fb98a15095fa7e5 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 26 Feb 2020 16:03:30 +0100 Subject: Config to switch to semantic tokens --- editors/code/src/config.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'editors/code/src/config.ts') diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index 47e8cd45d..bf915102c 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts @@ -22,6 +22,7 @@ export class Config { private static readonly requiresReloadOpts = [ "cargoFeatures", "cargo-watch", + "highlighting.semanticTokens" ] .map(opt => `${Config.rootSection}.${opt}`); @@ -143,6 +144,7 @@ export class Config { // We don't do runtime config validation here for simplicity. More on stackoverflow: // https://stackoverflow.com/questions/60135780/what-is-the-best-way-to-type-check-the-configuration-for-vscode-extension + get highlightingSemanticTokens() { return this.cfg.get("highlighting.semanticTokens") as boolean; } get highlightingOn() { return this.cfg.get("highlightingOn") as boolean; } get rainbowHighlightingOn() { return this.cfg.get("rainbowHighlightingOn") as boolean; } get lruCapacity() { return this.cfg.get("lruCapacity") as null | number; } -- cgit v1.2.3