Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Show Output Channel command for VSCode extension #2986

Merged
merged 3 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@
"command": "rubyLsp.collectRubyLspInfo",
"title": "Collect Ruby LSP Information for Issue Reporting",
"category": "Ruby LSP"
},
{
"command": "rubyLsp.showOutput",
"title": "Show Output Channel",
andyw8 marked this conversation as resolved.
Show resolved Hide resolved
"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",
}

export interface RubyInterface {
Expand Down
4 changes: 4 additions & 0 deletions vscode/src/rubyLsp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,10 @@ export class RubyLsp {
},
),
);
vscode.commands.registerCommand(Command.ShowOutput, async () => {
const workspace = await this.showWorkspacePick();
workspace?.lspClient?.outputChannel.show();
andyw8 marked this conversation as resolved.
Show resolved Hide resolved
});
}

// Get the current active workspace based on which file is opened in the editor
Expand Down
Loading