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
This commit is contained in:
Roo Code 2025-10-10 14:00:20 +00:00
parent 3a47c55a2e
commit 2731dd5243

View file

@ -96,7 +96,8 @@ export class DirectoryScanner implements IDirectoryScanner {
const relativeFilePath = generateRelativeFilePath(filePath, scanWorkspace)
// Check if file is in an ignored directory using the shared helper
if (isPathInIgnoredDirectory(filePath)) {
// Use relative path to avoid filtering out workspaces under hidden parent directories
if (isPathInIgnoredDirectory(relativeFilePath)) {
return false
}