diff --git a/src/handler/workspace.ts b/src/handler/workspace.ts index 152cdfdb244..8fbf4c84de7 100644 --- a/src/handler/workspace.ts +++ b/src/handler/workspace.ts @@ -103,9 +103,9 @@ export default class WorkspaceHandler { }, false, 'Generates a snapshot of the current V8 heap and writes it to a JSON file.') commands.register({ id: 'workspace.showOutput', - execute: async (name?: string) => { + execute: async (name?: string, cmd?: string) => { if (!name) name = await window.showQuickPick(workspace.channelNames, { title: 'Choose output name' }) as string - window.showOutputChannel(toText(name)) + window.showOutputChannel(toText(name), cmd) } }, false, 'open output buffer to show output from languageservers or extensions.') commands.register({ diff --git a/src/window.ts b/src/window.ts index cfd3187e178..f6b7958a72d 100644 --- a/src/window.ts +++ b/src/window.ts @@ -144,10 +144,11 @@ export class Window { * Reveal buffer of output channel. * * @param name Name of output channel. + * @param cmd command for open output channel. * @param preserveFocus Preserve window focus when true. */ - public showOutputChannel(name: string, preserveFocus?: boolean): void { - let command = this.configuration.get('workspace.openOutputCommand', 'vs') + public showOutputChannel(name: string, cmd?: string, preserveFocus?: boolean): void { + let command = cmd ? cmd : this.configuration.get('workspace.openOutputCommand', 'vs') channels.show(name, command, preserveFocus) }