@ file autocomplete breaks on paths containing spaces
- Vorherrschende Sprache
- Shell
- Sterne
- 11.2k
- Forks
- 1.9k
- Ø Merge
- 14 Std. 16 Min.
- Gemergte PRs (30 T.)
- 6
Beschreibung
### Describe the bug
Autocomplete for @ file references doesn't seem to work for navigating into a folder with a space in the path.
### Affected version
GitHub Copilot CLI 1.0.27
### Steps to reproduce the behavior
1. Initial condition: A file exists at `c:\foo bar\file.md`
2. Type `@c:\foo` in the prompt
3. Autocomplete suggests `@c:\foo bar\` (a folder with a space in its name)
4. Press Tab to complete the path segment
5. Press Backspace to remove [the space](https://github.com/github/copilot-cli/issues/2429) and continue navigating
### Expected behavior
Autocomplete continues showing the folder's contents, allowing further navigation into the folder (e.g., to select `file.md`).
### Actual behavior
The autocomplete menu disappears and path resolution stops. The space in "foo bar" terminates autocomplete for the @ file reference. There appears to be no way to use autocomplete to navigate into files inside directories whose names contain spaces. (Quoting the path from the beginning doesn't trigger autocomplete at all.)
### Additional context
_No response_
Beitragsleitfaden
Rechercherichtung
Reproduzieren Sie das Problem in GitHub Copilot CLI 1.0.27 mithilfe einer @-Referenz auf c:\foo bar\file.md und verfolgen Sie anschließend die Einstiegspunkte der @-Dateiautovervollständigung und der Pfadauflösung. Bestätigen Sie die Fehlerbehebung, indem Sie mit Tab und Backspace über das Leerzeichen navigieren, bis file.md vorgeschlagen wird, und bewahren Sie dabei das dokumentierte Verhalten für Pfade ohne Leerzeichen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- shell
- Bereich
- cli
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 65/100