diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-02-02 19:20:42 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-02 19:20:42 +0000 |
commit | e72771ebc6eb98c58a9e4216f7e3381a41e75f84 (patch) | |
tree | 681e88118603403c70de2e92d2a3cf3502bff2a0 /editors/code/src/inlay_hints.ts | |
parent | d06e02dd13e7cf10d53203620592aa0e85d808c0 (diff) | |
parent | 420462421d87a05c926501f8d4235f7660217924 (diff) |
Merge #2986
2986: vscode extension cleanup: migrate to prefer-const tslint rule r=matklad a=Veetaha
Co-authored-by: Veetaha <[email protected]>
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 { |