Skip to content

Commit

Permalink
minor: Tell the server to stop prior to restarting it
Browse files Browse the repository at this point in the history
  • Loading branch information
Veykril committed Dec 22, 2024
1 parent f4cafbb commit eb32c9f
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 eb32c9f

Please sign in to comment.