Skip to content

Commit 2731dd5

Browse files
committed
fix: prevent code indexer from skipping workspaces under hidden parent directories
- Modified scanner.ts to pass relative paths instead of absolute paths to isPathInIgnoredDirectory - This ensures files are only filtered based on hidden directories within the workspace, not parent directories - Fixes issue #8600 where workspaces under directories like .root were being completely skipped
1 parent 3a47c55 commit 2731dd5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/services/code-index/processors/scanner.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ export class DirectoryScanner implements IDirectoryScanner {
9696
const relativeFilePath = generateRelativeFilePath(filePath, scanWorkspace)
9797

9898
// Check if file is in an ignored directory using the shared helper
99-
if (isPathInIgnoredDirectory(filePath)) {
99+
// Use relative path to avoid filtering out workspaces under hidden parent directories
100+
if (isPathInIgnoredDirectory(relativeFilePath)) {
100101
return false
101102
}
102103

0 commit comments

Comments
 (0)