Allow disabling inlay hints
This commit is contained in:
parent
d5a1a5e614
commit
8327049fae
@ -41,10 +41,11 @@ const typeHintDecorationType = vscode.window.createTextEditorDecorationType({
|
||||
class HintsUpdater {
|
||||
private pending: Map<string, vscode.CancellationTokenSource> = 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) {
|
||||
|
Loading…
Reference in New Issue
Block a user