aboutsummaryrefslogtreecommitdiff
path: root/editors/code
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code')
-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) {