mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
vscode: add FIXME about language client shared resource protection
This commit is contained in:
parent
5397f05bfe
commit
1bdb78a89f
1 changed files with 3 additions and 0 deletions
|
@ -11,6 +11,9 @@ export class Ctx {
|
||||||
// deal with it.
|
// deal with it.
|
||||||
//
|
//
|
||||||
// Ideally, this should be replaced with async getter though.
|
// Ideally, this should be replaced with async getter though.
|
||||||
|
// FIXME: this actually needs syncronization of some kind (check how
|
||||||
|
// vscode deals with `deactivate()` call when extension has some work scheduled
|
||||||
|
// on the event loop to get a better picture of what we can do here)
|
||||||
client: lc.LanguageClient | null = null;
|
client: lc.LanguageClient | null = null;
|
||||||
private extCtx: vscode.ExtensionContext;
|
private extCtx: vscode.ExtensionContext;
|
||||||
private onDidRestartHooks: Array<(client: lc.LanguageClient) => void> = [];
|
private onDidRestartHooks: Array<(client: lc.LanguageClient) => void> = [];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue