diff --git a/editors/code/src/inlay_hints.ts b/editors/code/src/inlay_hints.ts index 6dd767d724b..078d18f0fb9 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) {