mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-29 02:52:11 +00:00
minor: Tell the server to stop prior to restarting it
This commit is contained in:
parent
f4cafbb678
commit
eb32c9f447
1 changed files with 2 additions and 0 deletions
|
|
@ -347,6 +347,8 @@ export class Ctx implements RustAnalyzerExtensionApi {
|
||||||
}
|
}
|
||||||
log.info("Disposing language client");
|
log.info("Disposing language client");
|
||||||
this.updateCommands("disable");
|
this.updateCommands("disable");
|
||||||
|
// we give the server 100ms to stop gracefully
|
||||||
|
await this.client?.stop(100).catch((_) => {});
|
||||||
await this.disposeClient();
|
await this.disposeClient();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue