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 <203725896+ibetitsmike@users.noreply.github.com>
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy