mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
feat: Clicking the status bar item stops and starts the server
This commit is contained in:
parent
d022e0ec53
commit
274df54885
2 changed files with 11 additions and 6 deletions
|
@ -120,9 +120,7 @@ function createCommands(): Record<string, CommandFactory> {
|
|||
// FIXME: We should re-use the client, that is ctx.deactivate() if none of the configs have changed
|
||||
await ctx.stop();
|
||||
ctx.setServerStatus({
|
||||
health: "ok",
|
||||
quiescent: true,
|
||||
message: "server is not running",
|
||||
health: "stopped",
|
||||
});
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue