mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +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");
|
||||
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