Skip to content

Commit a70f4d9

Browse files
authored
Enable verbose output when configuring a log directory (#578)
#542
1 parent 83391f9 commit a70f4d9

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### Changed
6+
7+
- Always enable verbose (`-v`) flag when a log directory is configured (`coder.proxyLogDir`).
8+
59
## [1.10.1](https://github.com/coder/vscode-coder/releases/tag/v1.10.1) 2025-08-13
610

711
### Fixed

src/commands.ts

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,19 @@ export class Commands {
321321
*/
322322
public async viewLogs(): Promise<void> {
323323
if (!this.workspaceLogPath) {
324-
vscode.window.showInformationMessage(
325-
"No logs available. Make sure to set coder.proxyLogDirectory to get logs.",
326-
this.workspaceLogPath || "<unset>",
327-
);
324+
vscode.window
325+
.showInformationMessage(
326+
"No logs available. Make sure to set coder.proxyLogDirectory to get logs.",
327+
"Open Settings",
328+
)
329+
.then((action) => {
330+
if (action === "Open Settings") {
331+
vscode.commands.executeCommand(
332+
"workbench.action.openSettings",
333+
"coder.proxyLogDirectory",
334+
);
335+
}
336+
});
328337
return;
329338
}
330339
const uri = vscode.Uri.file(this.workspaceLogPath);

src/remote.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ export class Remote {
676676
"SSH proxy diagnostics are being written to",
677677
logDir,
678678
);
679-
return ` --log-dir ${escapeCommandArg(logDir)}`;
679+
return ` --log-dir ${escapeCommandArg(logDir)} -v`;
680680
}
681681

682682
// updateSSHConfig updates the SSH configuration with a wildcard that handles

0 commit comments

Comments
 (0)