mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
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:
parent
3a47c55a2e
commit
2731dd5243
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue