Skip to content

Commit a85299f

Browse files
committed
finish up using the argument for the log directory
1 parent 6ddf339 commit a85299f

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

CHANGELOG.md

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

33
## Unreleased
44

5+
### Changed
6+
7+
- Make proxyLogDirectory a setting in the vscode extension rather than using the default for vscode,
8+
and only send the --log-dir argument to coder/coder if the value is set.
9+
510
## [v1.3.1](https://github.com/coder/vscode-coder/releases/tag/v1.3.1) (2024-07-15)
611

712
### Fixed

src/remote.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -638,9 +638,9 @@ export class Remote {
638638
if (supportsCoderAgentLogDirFlag(this.coderVersion)) {
639639
const logDir = expandPath(String(vscode.workspace.getConfiguration().get("coder.proxyLogDirectory") ?? "").trim())
640640
if (logDir) {
641-
await fs.mkdir(this.storage.getLogPath(), { recursive: true })
642-
logArg = ` --log-dir ${escape(this.storage.getLogPath())}`
643-
this.storage.writeToCoderOutputChannel(`Your logs are being written to ${this.storage.getLogPath()}`)
641+
await fs.mkdir(logDir, { recursive: true })
642+
logArg = ` --log-dir ${escape(logDir)}`
643+
this.storage.writeToCoderOutputChannel(`Your logs are being written to ${logDir}`)
644644
}
645645
}
646646
const sshValues: SSHValues = {

0 commit comments

Comments
 (0)