github / github/copilot-cli

@ file autocomplete breaks on paths containing spaces

Đang mở
#2,731 0 bình luận 2 reaction 0 người được giao Xem trên GitHub
area:input-keyboard
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

### 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_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.