diff options
Diffstat (limited to 'editors/code/src/inlay_hints.ts')
-rw-r--r-- | editors/code/src/inlay_hints.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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 { | |||
102 | }; | 102 | }; |
103 | let tokenSource = new vscode.CancellationTokenSource(); | 103 | let tokenSource = new vscode.CancellationTokenSource(); |
104 | let prev = this.pending.get(documentUri); | 104 | let prev = this.pending.get(documentUri); |
105 | if (prev) prev.cancel() | 105 | if (prev) prev.cancel(); |
106 | this.pending.set(documentUri, tokenSource); | 106 | this.pending.set(documentUri, tokenSource); |
107 | try { | 107 | try { |
108 | return await this.ctx.sendRequestWithRetry<InlayHint[] | null>( | 108 | return await this.ctx.sendRequestWithRetry<InlayHint[] | null>( |
@@ -112,7 +112,7 @@ class HintsUpdater { | |||
112 | ); | 112 | ); |
113 | } finally { | 113 | } finally { |
114 | if (!tokenSource.token.isCancellationRequested) { | 114 | if (!tokenSource.token.isCancellationRequested) { |
115 | this.pending.delete(documentUri) | 115 | this.pending.delete(documentUri); |
116 | } | 116 | } |
117 | } | 117 | } |
118 | } | 118 | } |