fix: Fix restart server button trying to start instead of restart the server

This commit is contained in:
Lukas Wirth 2023-04-28 21:34:31 +02:00
parent 3b97978c49
commit cf8f13b531
5 changed files with 9 additions and 10 deletions

View file

@ -21,7 +21,6 @@ export class Config {
"serverPath",
"server",
"files",
"lens", // works as lens.*
].map((opt) => `${this.rootSection}.${opt}`);
readonly package: {
@ -70,7 +69,7 @@ export class Config {
if (!requiresReloadOpt) return;
if (this.restartServerOnConfigChange) {
await vscode.commands.executeCommand("rust-analyzer.reload");
await vscode.commands.executeCommand("rust-analyzer.restartServer");
return;
}
@ -78,7 +77,7 @@ export class Config {
const userResponse = await vscode.window.showInformationMessage(message, "Restart now");
if (userResponse) {
const command = "rust-analyzer.reload";
const command = "rust-analyzer.restartServer";
await vscode.commands.executeCommand(command);
}
}