Skip to content

Commit d0a5916

Browse files
bors[bot]matklad
andauthored
Merge #2718
2718: Allow disabling inlay hints r=matklad a=matklad Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2 parents d5a1a5e + 8327049 commit d0a5916

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)