We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dba73e1 commit 3760f26Copy full SHA for 3760f26
src/remote/sshProcess.ts
@@ -39,7 +39,7 @@ export interface SshProcessMonitorOptions {
39
remoteSshExtensionId: string;
40
}
41
42
-// Cleanup threshold for old network info files
+// 1 hour cleanup threshold for old network info files
43
const CLEANUP_MAX_AGE_MS = 60 * 60 * 1000;
44
45
/**
@@ -100,8 +100,10 @@ export class SshProcessMonitor implements vscode.Disposable {
100
await fs.unlink(filePath);
101
deletedFiles.push(file);
102
103
- } catch {
104
- // File may have been deleted by another process or doesn't exist, ignore
+ } catch (error) {
+ if ((error as NodeJS.ErrnoException).code !== "ENOENT") {
105
+ logger.debug(`Failed to clean up network info file ${file}`, error);
106
+ }
107
108
109
0 commit comments