[VSCode] Improve sorting of slash-commands
Description
When a user enters a slash-command into the prompt input, the sorting of the returned results appears to always match the commands loading order, which is not useful to users. It would be preferable if exact matches and prefix matches are sorted first, given that the first result is the one that is selected by default. This would reduce the annoyance on users from the unexpected current state where typing an exact command name and hitting Enter inserts a command other than the one that was typed.
Current state example, where I would expect /commit to be at the top, highlighted by default, because it is an exact match:
Plugins
No response
Kilo version
No response
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response
Agree, this is weird
Yeah, I had not thought of that when I designed that implementation. That's a slip-up on my part, because I remember I designed the slash command implementation.
I don't currently have time to create a PR because I want to merge auto-approve in the CLI first. It would be appreciated if you guys could handle that work.
Hey I have raised a PR! Feel free to take a look.