diff options
Diffstat (limited to 'editors/code/src/inlay_hints.ts')
-rw-r--r-- | editors/code/src/inlay_hints.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editors/code/src/inlay_hints.ts b/editors/code/src/inlay_hints.ts index 6357e44f1..ae7510183 100644 --- a/editors/code/src/inlay_hints.ts +++ b/editors/code/src/inlay_hints.ts | |||
@@ -127,13 +127,13 @@ class HintsUpdater { | |||
127 | } | 127 | } |
128 | 128 | ||
129 | private async queryHints(documentUri: string): Promise<InlayHint[] | null> { | 129 | private async queryHints(documentUri: string): Promise<InlayHint[] | null> { |
130 | let client = this.ctx.client; | 130 | const client = this.ctx.client; |
131 | if (!client) return null; | 131 | if (!client) return null; |
132 | const request: InlayHintsParams = { | 132 | const request: InlayHintsParams = { |
133 | textDocument: { uri: documentUri }, | 133 | textDocument: { uri: documentUri }, |
134 | }; | 134 | }; |
135 | let tokenSource = new vscode.CancellationTokenSource(); | 135 | const tokenSource = new vscode.CancellationTokenSource(); |
136 | let prev = this.pending.get(documentUri); | 136 | const prev = this.pending.get(documentUri); |
137 | if (prev) prev.cancel(); | 137 | if (prev) prev.cancel(); |
138 | this.pending.set(documentUri, tokenSource); | 138 | this.pending.set(documentUri, tokenSource); |
139 | try { | 139 | try { |