mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 12:33:33 +00:00
Merge pull request #18737 from Veykril/push-rslstwynmzpx
minor: Tell the server to stop prior to restarting it
This commit is contained in:
commit
ca17481170
1 changed files with 2 additions and 0 deletions
|
@ -347,6 +347,8 @@ export class Ctx implements RustAnalyzerExtensionApi {
|
|||
}
|
||||
log.info("Disposing language client");
|
||||
this.updateCommands("disable");
|
||||
// we give the server 100ms to stop gracefully
|
||||
await this.client?.stop(100).catch((_) => {});
|
||||
await this.disposeClient();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue