-
Notifications
You must be signed in to change notification settings - Fork 30.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sorting/ranking of code actions #33756
Comments
@jrieken Adding you since I believe this would require an API change to code actions to add a sort order or similar |
And how do you do that given there is multiple providers that only have a local view of the world? I am open for ideas but it is tricky. From the tslint's POV inserting the missing semicolon is key, from typescript's POV inserting the import is key. |
I'm not sure we can create a general solution. A few ideas on how some sort of ordering could be introduced though:
|
Yes, it all requires enhanced API, I like the code-action-diagnostics-association, tho things need to be thought out carefully as there are also other requests in this area, like expressing a code action as text edit(s) and not just as command |
If available, it will probably be the most useful.
The text was updated successfully, but these errors were encountered: