We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a1ae26 commit 8dee463Copy full SHA for 8dee463
src/remote.ts
@@ -609,11 +609,14 @@ export class Remote {
609
disposables.push(this.showNetworkUpdates(pid));
610
if (logDir) {
611
const logFiles = await fs.readdir(logDir);
612
- this.commands.workspaceLogPath = logFiles
+ const logFileName = logFiles
613
.reverse()
614
.find(
615
(file) => file === `${pid}.log` || file.endsWith(`-${pid}.log`),
616
);
617
+ this.commands.workspaceLogPath = logFileName
618
+ ? path.join(logDir, logFileName)
619
+ : undefined;
620
} else {
621
this.commands.workspaceLogPath = undefined;
622
}
0 commit comments