Skip to content

Commit 8327049

Browse files
committed
Allow disabling inlay hints
1 parent d5a1a5e commit 8327049

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

editors/code/src/inlay_hints.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@ const typeHintDecorationType = vscode.window.createTextEditorDecorationType({
4141
class HintsUpdater {
4242
private pending: Map<string, vscode.CancellationTokenSource> = new Map();
4343
private ctx: Ctx;
44-
private enabled = true;
44+
private enabled: boolean;
4545

4646
constructor(ctx: Ctx) {
4747
this.ctx = ctx;
48+
this.enabled = ctx.config.displayInlayHints;
4849
}
4950

5051
async setEnabled(enabled: boolean) {

0 commit comments

Comments
 (0)