Skip to content
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

Improve sorting of quick fixes #7018

Open
mueller-ma opened this issue Mar 6, 2025 · 0 comments
Open

Improve sorting of quick fixes #7018

mueller-ma opened this issue Mar 6, 2025 · 0 comments
Assignees
Labels
needs repro Issue has not been reproduced yet

Comments

@mueller-ma
Copy link

When using this extension together with the ruff extension, the order of quick fixes isn't optimal. For undefined variables VS Code suggests to disable checking for undefined variables as first one and to add a missing import as second.

Image

This has been reported to Ruff, but it seems that they can't sort the quick fixes: astral-sh/ruff-vscode#624

Maybe pylance could set isPreferred for the add import quick fix, so it's listed as first one? https://vscode-api.js.org/classes/vscode.CodeAction.html#isPreferred

@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro Issue has not been reproduced yet
Projects
None yet
Development

No branches or pull requests

2 participants