Skip to content

Commit

Permalink
Auto merge of #15391 - Wilfred:default_click_action, r=Veykril
Browse files Browse the repository at this point in the history
Set the default status bar action to openLogs

Previously, clicking 'rust-analyzer' would stop the server entirely. This was easy to do accidentally, and then the user has to wait for the server to start up again.
  • Loading branch information
bors committed Aug 4, 2023
2 parents c59bd2d + 1e76b11 commit 86b6b6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editors/code/src/ctx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ export class Ctx {
statusBar.tooltip.appendText(status.message ?? "Ready");
statusBar.color = undefined;
statusBar.backgroundColor = undefined;
statusBar.command = "rust-analyzer.stopServer";
statusBar.command = "rust-analyzer.openLogs";
this.dependencies?.refresh();
break;
case "warning":
Expand Down

0 comments on commit 86b6b6f

Please sign in to comment.