cline
cline copied to clipboard
Multiple issues with autocompletion for file search
What happened?
There are two main problems with the autocompletion functionality:
- Unintuitive CamelHump Search Order: When using CamelHump search for files (e.g., typing "MCF" for "MyCodeFile"), the results are sorted alphabetically instead of by relevance. For instance, with files
/a/MyCodeFileTests.csand/z/MyCodeFile.ts, the former is listed first, even though "MCF" is a better match for the latter. The expected behavior is for the most relevant matches to appear at the top, similar to search features in VS Code or JetBrains IDEs. - No Autocomplete in Edit Mode: When editing a previously sent chat message, the autocomplete dropdown does not trigger when typing
@or/. This prevents embedding files or running commands while editing.
Steps to reproduce
For the search order issue:
- Create a project containing files with paths like
/a/MyCodeFileTests.csand/z/MyCodeFile.ts. - In the Cline chatbox, type
@to start a file search. - Type
MCF. - Observe that
/a/MyCodeFileTests.csappears before/z/MyCodeFile.tsin the results.
For the missing autocomplete in edit mode issue:
- Send any message in the chat.
- Begin editing that message.
- Type
@or/. - Observe that no autocomplete suggestions appear.
Relevant API REQUEST output
N/A
Provider/Model
gemini / gemini-2.5-pro
Operating System
darwin 24.4.0
System Info
VSCode: 1.101.1, Node.js: v22.15.1, Architecture: arm64
Cline Version
3.17.15
Additional context
N/A
Thanks for the suggestions @alexn-tinwell , I'll bring it up to the team
Thanks @alexn-tinwell it would be very helpful if you created a feature request for this idea here: https://github.com/cline/cline/discussions/categories/feature-requests
I'm not sure how this is a feature request. What I've outlined are bugs:
problems with the autocompletion
I've attached an example of Cline's odd behaviour: typing all-lowercase entries of a filename (the full name being /changes_diff.txt) results in wildly different results with each keypress - it's not determinstic whatsoever
https://github.com/user-attachments/assets/b4f18e09-a751-4bc5-92b3-676a0e775842
Compare that to Visual Studio Code
https://github.com/user-attachments/assets/135ee675-3a9f-41d0-b55c-32262a7a6514
@saoudrizwan @kevinneung
Ping