feat: Clicking the status bar item stops and starts the server

This commit is contained in:
Lukas Wirth 2022-10-28 23:10:10 +02:00
parent d022e0ec53
commit 274df54885
2 changed files with 11 additions and 6 deletions

View file

@ -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",
});
},
},