aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/inlay_hints.ts
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code/src/inlay_hints.ts')
-rw-r--r--editors/code/src/inlay_hints.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/editors/code/src/inlay_hints.ts b/editors/code/src/inlay_hints.ts
index 3ff45a625..1c019a51b 100644
--- a/editors/code/src/inlay_hints.ts
+++ b/editors/code/src/inlay_hints.ts
@@ -22,12 +22,12 @@ export function activateInlayHints(ctx: Ctx) {
22 ); 22 );
23 23
24 vscode.workspace.onDidChangeConfiguration( 24 vscode.workspace.onDidChangeConfiguration(
25 async _ => hintsUpdater.setEnabled(ctx.config.displayInlayHints()), 25 async _ => hintsUpdater.setEnabled(ctx.config.displayInlayHints),
26 null, 26 null,
27 ctx.subscriptions 27 ctx.subscriptions
28 ); 28 );
29 29
30 ctx.onDidRestart(_ => hintsUpdater.setEnabled(ctx.config.displayInlayHints())); 30 ctx.onDidRestart(_ => hintsUpdater.setEnabled(ctx.config.displayInlayHints));
31} 31}
32 32
33interface InlayHintsParams { 33interface InlayHintsParams {
@@ -59,7 +59,7 @@ class HintsUpdater {
59 59
60 constructor(ctx: Ctx) { 60 constructor(ctx: Ctx) {
61 this.ctx = ctx; 61 this.ctx = ctx;
62 this.enabled = ctx.config.displayInlayHints(); 62 this.enabled = ctx.config.displayInlayHints;
63 } 63 }
64 64
65 async setEnabled(enabled: boolean) { 65 async setEnabled(enabled: boolean) {