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

fix(biome-lsp): only filter quickactions when action category is 'quickfix.biome' #248

Merged
merged 2 commits into from
Sep 12, 2023

Conversation

victor-teles
Copy link
Contributor

@victor-teles victor-teles commented Sep 12, 2023

Summary

This PR resolves an issue that was blocking #185

As biome_lsp only need to avoid unsafe fixes when the code action is on-save quick-fixes, I changed the logic a little, to check if the value is 'quickfix.biome' instead of 'quickfix'

Now Intellij can pull all actions of kind 'quickfix' and vscode will not apply unsafe fixes on-save

Test Plan

  • Added some tests for quickfix.biome CodeActionKind
  • Tested manually on VSCode
  • Tested manually on IntelliJ

@github-actions github-actions bot added the A-LSP Area: language server protocol label Sep 12, 2023
Copy link
Member

@Conaclos Conaclos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Conaclos Conaclos merged commit 106538b into biomejs:main Sep 12, 2023
12 checks passed
@victor-teles victor-teles deleted the fix/lsp-analysis branch September 12, 2023 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-LSP Area: language server protocol
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants