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

ruff server: An empty code action filter no longer returns notebook source actions #11526

Merged
merged 2 commits into from
May 24, 2024

Conversation

snowsignal
Copy link
Contributor

Summary

Fixes #11516

ruff server was sending both regular source actions and notebook source actions back when passed an empty action filter. This PR makes a few small changes so that notebook source actions are not sent when regular source actions are sent, which means that an empty filter will only return regular source actions.

Test Plan

I confirmed that duplicate code actions no longer appeared in Neovim, using a configuration similar to the one from the original issue.

Screenshot 2024-05-23 at 11 48 48 PM

@snowsignal snowsignal added bug Something isn't working server Related to the LSP server labels May 24, 2024
Copy link
Contributor

github-actions bot commented May 24, 2024

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@snowsignal snowsignal enabled auto-merge (squash) May 24, 2024 07:17
@snowsignal snowsignal merged commit 81275a6 into main May 24, 2024
18 checks passed
@snowsignal snowsignal deleted the jane/server/no-duplicate-code-actions branch May 24, 2024 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working server Related to the LSP server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ruff server: duplicate code actions
2 participants