Skip to content

Commit 8dee463

Browse files
fix: construct full path for workspaceLogPath instead of just filename (#554)
Co-authored-by: blink-so[bot] <211532188+blink-so[bot]@users.noreply.github.com> Co-authored-by: ibetitsmike <[email protected]>
1 parent 8a1ae26 commit 8dee463

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/remote.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,11 +609,14 @@ export class Remote {
609609
disposables.push(this.showNetworkUpdates(pid));
610610
if (logDir) {
611611
const logFiles = await fs.readdir(logDir);
612-
this.commands.workspaceLogPath = logFiles
612+
const logFileName = logFiles
613613
.reverse()
614614
.find(
615615
(file) => file === `${pid}.log` || file.endsWith(`-${pid}.log`),
616616
);
617+
this.commands.workspaceLogPath = logFileName
618+
? path.join(logDir, logFileName)
619+
: undefined;
617620
} else {
618621
this.commands.workspaceLogPath = undefined;
619622
}

0 commit comments

Comments
 (0)