mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Add config for the default click action of extension status bar
This commit is contained in:
parent
7b8330f283
commit
ab091b73d0
3 changed files with 22 additions and 1 deletions
|
@ -400,7 +400,11 @@ export class Ctx {
|
|||
statusBar.tooltip.appendText(status.message ?? "Ready");
|
||||
statusBar.color = undefined;
|
||||
statusBar.backgroundColor = undefined;
|
||||
statusBar.command = "rust-analyzer.openLogs";
|
||||
if (this.config.statusBarClickAction === "stopServer") {
|
||||
statusBar.command = "rust-analyzer.stopServer";
|
||||
} else {
|
||||
statusBar.command = "rust-analyzer.openLogs";
|
||||
}
|
||||
this.dependencies?.refresh();
|
||||
break;
|
||||
case "warning":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue