From 8ea908d98d46ac5b9cb7a0aede8a772ab2cbf477 Mon Sep 17 00:00:00 2001 From: Ehab Younes Date: Thu, 4 Sep 2025 16:30:03 +0300 Subject: [PATCH 1/2] Enable verbose output when adding a log directory --- src/remote.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remote.ts b/src/remote.ts index 40dd9072..9dbb1503 100644 --- a/src/remote.ts +++ b/src/remote.ts @@ -676,7 +676,7 @@ export class Remote { "SSH proxy diagnostics are being written to", logDir, ); - return ` --log-dir ${escapeCommandArg(logDir)}`; + return ` --log-dir ${escapeCommandArg(logDir)} -v`; } // updateSSHConfig updates the SSH configuration with a wildcard that handles From aa4b4d919948e91af9d49c9cf069f0356ede979b Mon Sep 17 00:00:00 2001 From: Ehab Younes Date: Fri, 5 Sep 2025 11:17:30 +0300 Subject: [PATCH 2/2] Added changelog + Enhanced logging info message --- CHANGELOG.md | 4 ++++ src/commands.ts | 17 +++++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 22455198..41ed103a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### Changed + +- Always enable verbose (`-v`) flag when a log directory is configured (`coder.proxyLogDir`). + ## [1.10.1](https://github.com/coder/vscode-coder/releases/tag/v1.10.1) 2025-08-13 ### Fixed diff --git a/src/commands.ts b/src/commands.ts index b40ea56e..11ecf8b7 100644 --- a/src/commands.ts +++ b/src/commands.ts @@ -321,10 +321,19 @@ export class Commands { */ public async viewLogs(): Promise { if (!this.workspaceLogPath) { - vscode.window.showInformationMessage( - "No logs available. Make sure to set coder.proxyLogDirectory to get logs.", - this.workspaceLogPath || "", - ); + vscode.window + .showInformationMessage( + "No logs available. Make sure to set coder.proxyLogDirectory to get logs.", + "Open Settings", + ) + .then((action) => { + if (action === "Open Settings") { + vscode.commands.executeCommand( + "workbench.action.openSettings", + "coder.proxyLogDirectory", + ); + } + }); return; } const uri = vscode.Uri.file(this.workspaceLogPath);