From 233f1dd2a850a7c8c6947c88c1ce06f7a945befd Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 30 Dec 2019 23:12:33 +0100 Subject: Privatize highlighting --- editors/code/src/inlay_hints.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editors/code/src/inlay_hints.ts') diff --git a/editors/code/src/inlay_hints.ts b/editors/code/src/inlay_hints.ts index d41297407..a7be97db8 100644 --- a/editors/code/src/inlay_hints.ts +++ b/editors/code/src/inlay_hints.ts @@ -102,7 +102,7 @@ class HintsUpdater { }; let tokenSource = new vscode.CancellationTokenSource(); let prev = this.pending.get(documentUri); - if (prev) prev.cancel() + if (prev) prev.cancel(); this.pending.set(documentUri, tokenSource); try { return await this.ctx.sendRequestWithRetry( @@ -112,7 +112,7 @@ class HintsUpdater { ); } finally { if (!tokenSource.token.isCancellationRequested) { - this.pending.delete(documentUri) + this.pending.delete(documentUri); } } } -- cgit v1.2.3