Skip to content

Commit 519bd0d

Browse files
committed
Fix #2700
1 parent 98e20da commit 519bd0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)