Skip to content

Commit

Permalink
Add Show Output Channel command for VSCode extension (#2986)
Browse files Browse the repository at this point in the history
* Add Show Output Channel command for VSCode extension

* Fix capitalization and use LOG_CHANNEL for output
  • Loading branch information
timkooi-jobber authored Dec 20, 2024
1 parent 934729f commit a990ee3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@
"command": "rubyLsp.migrateLaunchConfiguration",
"title": "Migrate launch.json configurations from rdbg to ruby_lsp",
"category": "Ruby LSP"
},
{
"command": "rubyLsp.showOutput",
"title": "Show output channel",
"category": "Ruby LSP"
}
],
"configuration": {
Expand Down
1 change: 1 addition & 0 deletions vscode/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export enum Command {
NewMinitestFile = "rubyLsp.newMinitestFile",
CollectRubyLspInfo = "rubyLsp.collectRubyLspInfo",
StartServerInDebugMode = "rubyLsp.startServerInDebugMode",
ShowOutput = "rubyLsp.showOutput",
MigrateLaunchConfiguration = "rubyLsp.migrateLaunchConfiguration",
}

Expand Down
3 changes: 3 additions & 0 deletions vscode/src/rubyLsp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,9 @@ export class RubyLsp {
},
),
);
vscode.commands.registerCommand(Command.ShowOutput, async () => {
LOG_CHANNEL.show();
});
vscode.commands.registerCommand(
Command.MigrateLaunchConfiguration,
async () => {
Expand Down

0 comments on commit a990ee3

Please sign in to comment.