Merge #2718
2718: Allow disabling inlay hints r=matklad a=matklad Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
d0a59164d5
@ -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…
x
Reference in New Issue
Block a user