Skip to content

Commit 3760f26

Browse files
committed
Review comments
1 parent dba73e1 commit 3760f26

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/remote/sshProcess.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export interface SshProcessMonitorOptions {
3939
remoteSshExtensionId: string;
4040
}
4141

42-
// Cleanup threshold for old network info files
42+
// 1 hour cleanup threshold for old network info files
4343
const CLEANUP_MAX_AGE_MS = 60 * 60 * 1000;
4444

4545
/**
@@ -100,8 +100,10 @@ export class SshProcessMonitor implements vscode.Disposable {
100100
await fs.unlink(filePath);
101101
deletedFiles.push(file);
102102
}
103-
} catch {
104-
// File may have been deleted by another process or doesn't exist, ignore
103+
} catch (error) {
104+
if ((error as NodeJS.ErrnoException).code !== "ENOENT") {
105+
logger.debug(`Failed to clean up network info file ${file}`, error);
106+
}
105107
}
106108
}
107109

0 commit comments

Comments
 (0)