fix!(biome): allow passing options to biome check (#4799)

The only option available to biome's `lsp-proxy` command used for
linting is `--config-path`. However, we are using ALE to find and set
the project root, and have a way to manually override, so that is no
longer necessary.

The LSP proxy also used the `g:ale_biome_options` config, which is
shared with the fixer's `check` command, but `lsp-proxy` will throw an
error if unknown options are included, making it so that option is only
useful to set the project root.

BREAKING CHANGE: We are no longer passing options to the biome LSP
proxy, but we can still set the project root with
`g:ale_biome_lsp_project_root`.
This commit is contained in:
Braden Kelley
2024-06-26 22:30:06 -07:00
committed by GitHub
parent ed0b036220
commit a0ad5f938a
6 changed files with 17 additions and 17 deletions

View File

@@ -14,11 +14,6 @@ After:
Execute(The default biome command should be correct):
AssertLinter 'biome', ale#Escape('biome') . ' lsp-proxy'
Execute(The biome command should accept options):
let g:ale_biome_options = '--foobar'
AssertLinter 'biome', ale#Escape('biome') . ' lsp-proxy --foobar'
Execute(Uses the filetype as the language):
call ale#test#SetFilename('test.ts')
set filetype=typescript