From 8327049fae25205d253001178e41dd6ea8b8094d Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 1 Jan 2020 17:04:37 +0100 Subject: Allow disabling inlay hints --- editors/code/src/inlay_hints.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'editors') 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({ class HintsUpdater { private pending: Map = new Map(); private ctx: Ctx; - private enabled = true; + private enabled: boolean; constructor(ctx: Ctx) { this.ctx = ctx; + this.enabled = ctx.config.displayInlayHints; } async setEnabled(enabled: boolean) { -- cgit v1.2.3