mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
vscode extension cleanup: migrate to prefer-const tslint rule
This commit is contained in:
parent
d06e02dd13
commit
420462421d
6 changed files with 11 additions and 10 deletions
|
@ -127,13 +127,13 @@ class HintsUpdater {
|
|||
}
|
||||
|
||||
private async queryHints(documentUri: string): Promise<InlayHint[] | null> {
|
||||
let client = this.ctx.client;
|
||||
const client = this.ctx.client;
|
||||
if (!client) return null;
|
||||
const request: InlayHintsParams = {
|
||||
textDocument: { uri: documentUri },
|
||||
};
|
||||
let tokenSource = new vscode.CancellationTokenSource();
|
||||
let prev = this.pending.get(documentUri);
|
||||
const tokenSource = new vscode.CancellationTokenSource();
|
||||
const prev = this.pending.get(documentUri);
|
||||
if (prev) prev.cancel();
|
||||
this.pending.set(documentUri, tokenSource);
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue