Skip to content

Commit 7c4d4e1

Browse files
bors[bot]matklad
andauthored
Merge #2701
2701: ⬆️ lsp-server r=matklad a=matklad Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2 parents 98e20da + 54b4b7e commit 7c4d4e1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

editors/code/src/ctx.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class Ctx {
7070
await this.client.onReady();
7171
for (const delay of [2, 4, 6, 8, 10, null]) {
7272
try {
73-
return await this.client.sendRequest(method, param, token);
73+
return await (token ? this.client.sendRequest(method, param, token) : this.client.sendRequest(method, param));
7474
} catch (e) {
7575
if (
7676
e.code === lc.ErrorCodes.ContentModified &&

0 commit comments

Comments
 (0)