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

Avoid disable rule comment code action for E999 #449

Closed
wants to merge 1 commit into from

Conversation

dhruvmanila
Copy link
Member

Summary

This PR updates the ruff-lsp server to avoid generating the "disable for this line" code action for E999 (syntax error). This is a follow-up to astral-sh/ruff#11901 which does the same for the new server.

Test Plan

Run it locally and make sure there are no quick fixes in the VS Code menu:

Screenshot 2024-06-19 at 07 31 55 Screenshot 2024-06-19 at 07 31 40

@dhruvmanila
Copy link
Member Author

Note: Do not merge this PR right now, it needs to be clubbed with the 0.5 release mainly to match the behavior with ruff server.

@dhruvmanila
Copy link
Member Author

This is not required now since the noqa_row field in the JSON output will be null in case of syntax errors with astral-sh/ruff#11901

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants