diff options
Diffstat (limited to 'editors/code/src/config.ts')
-rw-r--r-- | editors/code/src/config.ts | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index b26bf10da..2668c9640 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts | |||
@@ -6,7 +6,8 @@ import { log } from "./util"; | |||
6 | const RA_LSP_DEBUG = process.env.__RA_LSP_SERVER_DEBUG; | 6 | const RA_LSP_DEBUG = process.env.__RA_LSP_SERVER_DEBUG; |
7 | 7 | ||
8 | export interface InlayHintOptions { | 8 | export interface InlayHintOptions { |
9 | displayType: string; | 9 | typeHints: boolean; |
10 | parameterHints: boolean; | ||
10 | maxLength: number; | 11 | maxLength: number; |
11 | } | 12 | } |
12 | 13 | ||
@@ -28,8 +29,7 @@ export class Config { | |||
28 | "cargoFeatures", | 29 | "cargoFeatures", |
29 | "cargo-watch", | 30 | "cargo-watch", |
30 | "highlighting.semanticTokens", | 31 | "highlighting.semanticTokens", |
31 | "inlayHintOpts.maxLength", | 32 | "inlayHints", |
32 | "inlayHintOpts.displayType", | ||
33 | ] | 33 | ] |
34 | .map(opt => `${Config.rootSection}.${opt}`); | 34 | .map(opt => `${Config.rootSection}.${opt}`); |
35 | 35 | ||
@@ -156,10 +156,11 @@ export class Config { | |||
156 | get highlightingOn() { return this.cfg.get("highlightingOn") as boolean; } | 156 | get highlightingOn() { return this.cfg.get("highlightingOn") as boolean; } |
157 | get rainbowHighlightingOn() { return this.cfg.get("rainbowHighlightingOn") as boolean; } | 157 | get rainbowHighlightingOn() { return this.cfg.get("rainbowHighlightingOn") as boolean; } |
158 | get lruCapacity() { return this.cfg.get("lruCapacity") as null | number; } | 158 | get lruCapacity() { return this.cfg.get("lruCapacity") as null | number; } |
159 | get inlayHintOpts(): InlayHintOptions { | 159 | get inlayHints(): InlayHintOptions { |
160 | return { | 160 | return { |
161 | displayType: this.cfg.get("inlayHintOpts.displayType") as string, | 161 | typeHints: this.cfg.get("inlayHints.typeHints") as boolean, |
162 | maxLength: this.cfg.get("inlayHintOpts.maxLength") as number, | 162 | parameterHints: this.cfg.get("inlayHints.parameterHints") as boolean, |
163 | maxLength: this.cfg.get("inlayHints.maxLength") as number, | ||
163 | }; | 164 | }; |
164 | } | 165 | } |
165 | get excludeGlobs() { return this.cfg.get("excludeGlobs") as string[]; } | 166 | get excludeGlobs() { return this.cfg.get("excludeGlobs") as string[]; } |