Skip to content

Commit ce87569

Browse files
rajbosCopilot
andcommitted
Fix duplicate pathExists method in sessionDiscovery.ts
Merge introduced two copies: one from the PR branch (line 41) and one from main's async-IO refactor commit. Remove the second duplicate. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 93a1f5a commit ce87569

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

vscode-extension/src/sessionDiscovery.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -520,14 +520,6 @@ export class SessionDiscovery {
520520
return sessionFiles;
521521
}
522522

523-
/**
524-
* Async helper: resolves true if the path is accessible, false otherwise.
525-
* Prefer this over fs.existsSync() to avoid blocking the extension-host event loop.
526-
*/
527-
private async pathExists(p: string): Promise<boolean> {
528-
try { await fs.promises.access(p); return true; } catch { return false; }
529-
}
530-
531523
/**
532524
* Recursively scan a directory for session files (.json and .jsonl)
533525
*

0 commit comments

Comments
 (0)