aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/ctx.ts
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-12-31 10:44:52 +0000
committerAleksey Kladov <[email protected]>2019-12-31 10:44:52 +0000
commit519bd0deb56a0b90fb20f250d578c628011c5bff (patch)
treef9f1c1198ef8a504ebbe4912647f85d0ae027b9d /editors/code/src/ctx.ts
parent98e20dac4edabeb0dd695110fdca29a6adc40019 (diff)
Fix #2700
Diffstat (limited to 'editors/code/src/ctx.ts')
-rw-r--r--editors/code/src/ctx.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/src/ctx.ts b/editors/code/src/ctx.ts
index 30dd9811c..693ce05ed 100644
--- a/editors/code/src/ctx.ts
+++ b/editors/code/src/ctx.ts
@@ -70,7 +70,7 @@ export class Ctx {
70 await this.client.onReady(); 70 await this.client.onReady();
71 for (const delay of [2, 4, 6, 8, 10, null]) { 71 for (const delay of [2, 4, 6, 8, 10, null]) {
72 try { 72 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));
74 } catch (e) { 74 } catch (e) {
75 if ( 75 if (
76 e.code === lc.ErrorCodes.ContentModified && 76 e.code === lc.ErrorCodes.ContentModified &&