Skip to content

Commit

Permalink
Merge pull request #18737 from Veykril/push-rslstwynmzpx
Browse files Browse the repository at this point in the history
minor: Tell the server to stop prior to restarting it
  • Loading branch information
Veykril authored Dec 22, 2024
2 parents 31938db + eb32c9f commit ca17481
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions editors/code/src/ctx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit ca17481

Please sign in to comment.