aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-01-01 16:06:21 +0000
committerGitHub <[email protected]>2020-01-01 16:06:21 +0000
commitd0a59164d5737f5d53b5d8414ca8d19a715be766 (patch)
tree2b9b011ad33bba6500ed1e5e1cef72457e1b8110 /editors
parentd5a1a5e6147ffdcd655ea082161bc63ac2974f2e (diff)
parent8327049fae25205d253001178e41dd6ea8b8094d (diff)
Merge #2718
2718: Allow disabling inlay hints r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
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) {