-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Description
What specific problem does this solve?
The @ file autocomplete feature does not show files with spaces in their names unless the file is first opened in a VS Code tab. This creates an inconsistent and frustrating user experience where users must manually open files before they can reference them with @.
Who is affected: All users working with files that have spaces in their names
Current behavior: Files with spaces don't appear in @ autocomplete until opened in VS Code
Expected behavior: Files with spaces should appear in @ autocomplete without requiring them to be opened first
Steps to Reproduce
- Create a file with spaces in the name (e.g., "test file.md")
- In Roo Code, type
@testin the chat input - Observe that "test file.md" does not appear in the autocomplete suggestions
- Open "test file.md" in a VS Code tab
- Type
@testagain in Roo Code - Now "test file.md" appears in the autocomplete suggestions as "@test file.md"
Current vs Expected Behavior
Current: @ autocomplete only shows files with spaces if they are already opened in VS Code tabs
Expected: @ autocomplete should find and show files with spaces based on filename matching, regardless of whether they are opened
Related Issues
This appears to be a regression or incomplete fix related to:
- Issue Unable to add file to context if the file name has a space #2361: "Unable to add file to context if the file name has a space" (closed)
- PR bug: space in folder and file name #2767: "bug: space in folder and file name" (merged)
While the core functionality was fixed to handle spaces in filenames, the file discovery/indexing mechanism for autocomplete still seems to have limitations.
Technical Context
The issue suggests that:
- File indexing for autocomplete may prioritize or only include currently opened files
- The file discovery mechanism might not properly scan for files with spaces in project directories
- There may be a difference between the regex fixes for handling spaces and the file search/indexing logic
Impact
This forces users to adopt workarounds (opening files first) and breaks the natural workflow of referencing files directly through @.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status