mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +00:00
Fix #2700
This commit is contained in:
parent
98e20dac4e
commit
519bd0deb5
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ export class Ctx {
|
|||
await this.client.onReady();
|
||||
for (const delay of [2, 4, 6, 8, 10, null]) {
|
||||
try {
|
||||
return await this.client.sendRequest(method, param, token);
|
||||
return await (token ? this.client.sendRequest(method, param, token) : this.client.sendRequest(method, param));
|
||||
} catch (e) {
|
||||
if (
|
||||
e.code === lc.ErrorCodes.ContentModified &&
|
||||
|
|
Loading…
Reference in a new issue