Skip to content

Commit

Permalink
Open output channel as well when opening logs (#3531)
Browse files Browse the repository at this point in the history
Signed-off-by: Sheng Chen <[email protected]>
  • Loading branch information
jdneo authored Mar 18, 2024
1 parent 78ed363 commit b71d0ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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...";
}
4 changes: 3 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ export async function activate(context: ExtensionContext): Promise<ExtensionAPI>
}

items.push({
label: `$(coffee) Java Status: ${status}`,
label: `$(coffee) Status: ${status}`,
command: statusCommand,
}, {
label: "",
Expand Down Expand Up @@ -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<boolean> {
Expand Down

0 comments on commit b71d0ac

Please sign in to comment.