diff options
author | Veetaha <[email protected]> | 2020-02-14 21:04:50 +0000 |
---|---|---|
committer | Veetaha <[email protected]> | 2020-02-14 21:04:50 +0000 |
commit | 4fb427743c27c63a4aa3ccd54c488b22d4308bc2 (patch) | |
tree | 45dfb0fca0912d45e83fd33b1eb065898febec2a /editors/code/src/inlay_hints.ts | |
parent | fd37151ade9948398e863c38418fb4f0d0acdfa7 (diff) |
vscode: moved to getters as per matklad
Diffstat (limited to 'editors/code/src/inlay_hints.ts')
-rw-r--r-- | editors/code/src/inlay_hints.ts | 6 |
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 | ||
33 | interface InlayHintsParams { | 33 | interface 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) { |