diff --git a/vscode/package.json b/vscode/package.json index 90c5d8e2f..2cfc7740d 100644 --- a/vscode/package.json +++ b/vscode/package.json @@ -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": { diff --git a/vscode/src/common.ts b/vscode/src/common.ts index 7652eccb3..327ca2bae 100644 --- a/vscode/src/common.ts +++ b/vscode/src/common.ts @@ -29,6 +29,7 @@ export enum Command { NewMinitestFile = "rubyLsp.newMinitestFile", CollectRubyLspInfo = "rubyLsp.collectRubyLspInfo", StartServerInDebugMode = "rubyLsp.startServerInDebugMode", + ShowOutput = "rubyLsp.showOutput", MigrateLaunchConfiguration = "rubyLsp.migrateLaunchConfiguration", } diff --git a/vscode/src/rubyLsp.ts b/vscode/src/rubyLsp.ts index de297f590..54f1b2f6c 100644 --- a/vscode/src/rubyLsp.ts +++ b/vscode/src/rubyLsp.ts @@ -597,6 +597,9 @@ export class RubyLsp { }, ), ); + vscode.commands.registerCommand(Command.ShowOutput, async () => { + LOG_CHANNEL.show(); + }); vscode.commands.registerCommand( Command.MigrateLaunchConfiguration, async () => {