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): send correct language to lsp proxy #4773

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

redbmk
Copy link
Contributor

@redbmk redbmk commented May 13, 2024

Since Biome understands typescriptreact and javascriptreact as languages, we can send the filetype to the LSP, rather than only sending typescript for both ts and tsx files, or javascript for js and jsx files.

fixes: #4752


I moved the ale_typescript_biome.vader tests to just ale_biome.vader since it covers multiple languages, and I added some tests for this case. I also fixed what seemed like an issue with the biome tests where if the linters run first then the fixers fail. Now it saves the variables and resets them before the tests.

Linting and biome vader tests both pass locally for me

Since Biome understands `typescriptreact` and `javascriptreact` as
languages, we can send the `filetype` to the LSP, rather than only
sending `typescript` for both `ts` and `tsx` files, or `javascript` for
`js` and `jsx` files.

fixes: dense-analysis#4752
Copy link
Member

@w0rp w0rp left a comment

Choose a reason for hiding this comment

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

I may change the tests a little later based on specific Vader things but I think this will work.

Cheers! 🍻

@w0rp w0rp merged commit 5606606 into dense-analysis:master Jun 24, 2024
7 checks passed
@redbmk redbmk deleted the biome-language branch June 24, 2024 22:43
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.

ALE linting .tsx as .ts files when using Biome
2 participants