Skip to content

Commit b71d0ac

Browse files
authored
Open output channel as well when opening logs (#3531)
Signed-off-by: Sheng Chen <sheche@microsoft.com>
1 parent 78ed363 commit b71d0ac

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/commands.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,6 @@ export namespace Commands {
363363
*/
364364
export namespace CommandTitle {
365365
export const OPEN_JAVA_SETTINGS = "$(settings-gear) Open Java Settings";
366-
export const OPEN_LOGS = "$(output) Open Logs...";
367-
export const CLEAN_WORKSPACE_CACHE = "$(trash) Clean Workspace Cache";
366+
export const OPEN_LOGS = "$(output) Open Logs";
367+
export const CLEAN_WORKSPACE_CACHE = "$(trash) Clean Workspace Cache...";
368368
}

src/extension.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ export async function activate(context: ExtensionContext): Promise<ExtensionAPI>
366366
}
367367

368368
items.push({
369-
label: `$(coffee) Java Status: ${status}`,
369+
label: `$(coffee) Status: ${status}`,
370370
command: statusCommand,
371371
}, {
372372
label: "",
@@ -830,6 +830,8 @@ async function openLogs() {
830830
await commands.executeCommand(Commands.OPEN_SERVER_LOG, ViewColumn.One);
831831
await commands.executeCommand(Commands.OPEN_SERVER_STDOUT_LOG, ViewColumn.One);
832832
await commands.executeCommand(Commands.OPEN_SERVER_STDERR_LOG, ViewColumn.One);
833+
const client = await getActiveLanguageClient();
834+
client?.outputChannel.show(true);
833835
}
834836

835837
function openLogFile(logFile, openingFailureWarning: string, column: ViewColumn = ViewColumn.Active): Thenable<boolean> {

0 commit comments

Comments
 (0)