diff options
author | Veetaha <gerzoh1@gmail.com> | 2020-02-06 22:09:13 +0000 |
---|---|---|
committer | Veetaha <gerzoh1@gmail.com> | 2020-02-08 02:34:11 +0000 |
commit | 1bdb78a89f6618527f2dc23f8f76e83ee77e3ea5 (patch) | |
tree | f5b2e9ea91499a77ee150fefb4b9e8555e55883b /editors | |
parent | 5397f05bfe7f3b18229a65040c6685e762b2f9a3 (diff) |
vscode: add FIXME about language client shared resource protection
Diffstat (limited to 'editors')
-rw-r--r-- | editors/code/src/ctx.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editors/code/src/ctx.ts b/editors/code/src/ctx.ts index aa75943bf..a4dcc3037 100644 --- a/editors/code/src/ctx.ts +++ b/editors/code/src/ctx.ts | |||
@@ -11,6 +11,9 @@ export class Ctx { | |||
11 | // deal with it. | 11 | // deal with it. |
12 | // | 12 | // |
13 | // Ideally, this should be replaced with async getter though. | 13 | // Ideally, this should be replaced with async getter though. |
14 | // FIXME: this actually needs syncronization of some kind (check how | ||
15 | // vscode deals with `deactivate()` call when extension has some work scheduled | ||
16 | // on the event loop to get a better picture of what we can do here) | ||
14 | client: lc.LanguageClient | null = null; | 17 | client: lc.LanguageClient | null = null; |
15 | private extCtx: vscode.ExtensionContext; | 18 | private extCtx: vscode.ExtensionContext; |
16 | private onDidRestartHooks: Array<(client: lc.LanguageClient) => void> = []; | 19 | private onDidRestartHooks: Array<(client: lc.LanguageClient) => void> = []; |