mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
fix: Fix restart server button trying to start instead of restart the server
This commit is contained in:
parent
3b97978c49
commit
cf8f13b531
5 changed files with 9 additions and 10 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue