file autocomplete doesn't work for uninitialized git submodules
Resolved 💬 3 comments Opened Dec 23, 2025 by ppf Closed Dec 27, 2025
Environment:
- macOS Darwin 25.2.0
- Claude Code (latest)
- ripgrep installed (/opt/homebrew/bin/rg)
Steps to reproduce:
- Have .gitmodules defining a submodule
- Have the submodule directory with full .git folder (cloned separately, not via git submodule update --init)
- Directory is NOT in .gitignore
- Try @submodule/file.json autocomplete → doesn't suggest files
Expected: Files in untracked/uninitialized submodule directories should be indexed if not gitignored
Actual: No file suggestions until running git submodule update --init
Root cause: Filesystem traversal treats nested .git directories as repository boundaries and excludes them from indexing
Workaround: Initialize submodule properly or use custom fileSuggestion with git ls-files
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗