diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-12-31 10:48:49 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-12-31 10:48:49 +0000 |
commit | 7c4d4e113bc039712aa3996e57eaef19d12bd9ff (patch) | |
tree | ac101ebf143b4fca37775861b390c469f7df7d6f /editors/code | |
parent | 98e20dac4edabeb0dd695110fdca29a6adc40019 (diff) | |
parent | 54b4b7e317f674962c404213c81d61549f8d60fe (diff) |
Merge #2701
2701: :arrow_up: lsp-server r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'editors/code')
-rw-r--r-- | editors/code/src/ctx.ts | 2 |
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 && |