aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-01-01 16:04:37 +0000
committerAleksey Kladov <[email protected]>2020-01-01 16:04:37 +0000
commit8327049fae25205d253001178e41dd6ea8b8094d (patch)
tree2b9b011ad33bba6500ed1e5e1cef72457e1b8110 /editors
parentd5a1a5e6147ffdcd655ea082161bc63ac2974f2e (diff)
Allow disabling inlay hints
Diffstat (limited to 'editors')
-rw-r--r--editors/code/src/inlay_hints.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/editors/code/src/inlay_hints.ts b/editors/code/src/inlay_hints.ts
index 6dd767d72..078d18f0f 100644
--- a/editors/code/src/inlay_hints.ts
+++ b/editors/code/src/inlay_hints.ts
@@ -41,10 +41,11 @@ const typeHintDecorationType = vscode.window.createTextEditorDecorationType({
41class HintsUpdater { 41class HintsUpdater {
42 private pending: Map<string, vscode.CancellationTokenSource> = new Map(); 42 private pending: Map<string, vscode.CancellationTokenSource> = new Map();
43 private ctx: Ctx; 43 private ctx: Ctx;
44 private enabled = true; 44 private enabled: boolean;
45 45
46 constructor(ctx: Ctx) { 46 constructor(ctx: Ctx) {
47 this.ctx = ctx; 47 this.ctx = ctx;
48 this.enabled = ctx.config.displayInlayHints;
48 } 49 }
49 50
50 async setEnabled(enabled: boolean) { 51 async setEnabled(enabled: boolean) {