From b71d0ac40f4479428f2db2a8b3d8e197ea09e68c Mon Sep 17 00:00:00 2001 From: Sheng Chen Date: Mon, 18 Mar 2024 10:25:59 +0800 Subject: [PATCH] Open output channel as well when opening logs (#3531) Signed-off-by: Sheng Chen --- src/commands.ts | 4 ++-- src/extension.ts | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/commands.ts b/src/commands.ts index 8362f5045..7bcfb4583 100644 --- a/src/commands.ts +++ b/src/commands.ts @@ -363,6 +363,6 @@ export namespace Commands { */ export namespace CommandTitle { export const OPEN_JAVA_SETTINGS = "$(settings-gear) Open Java Settings"; - export const OPEN_LOGS = "$(output) Open Logs..."; - export const CLEAN_WORKSPACE_CACHE = "$(trash) Clean Workspace Cache"; + export const OPEN_LOGS = "$(output) Open Logs"; + export const CLEAN_WORKSPACE_CACHE = "$(trash) Clean Workspace Cache..."; } diff --git a/src/extension.ts b/src/extension.ts index 87af408ef..dea040ab6 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -366,7 +366,7 @@ export async function activate(context: ExtensionContext): Promise } items.push({ - label: `$(coffee) Java Status: ${status}`, + label: `$(coffee) Status: ${status}`, command: statusCommand, }, { label: "", @@ -830,6 +830,8 @@ async function openLogs() { await commands.executeCommand(Commands.OPEN_SERVER_LOG, ViewColumn.One); await commands.executeCommand(Commands.OPEN_SERVER_STDOUT_LOG, ViewColumn.One); await commands.executeCommand(Commands.OPEN_SERVER_STDERR_LOG, ViewColumn.One); + const client = await getActiveLanguageClient(); + client?.outputChannel.show(true); } function openLogFile(logFile, openingFailureWarning: string, column: ViewColumn = ViewColumn.Active): Thenable {