mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-30 08:04:31 +08:00
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:
@@ -19,13 +19,6 @@ function! ale#handlers#biome#GetExecutable(buffer) abort
|
||||
\])
|
||||
endfunction
|
||||
|
||||
function! ale#handlers#biome#GetCommand(buffer) abort
|
||||
let l:options = ale#Var(a:buffer, 'biome_options')
|
||||
|
||||
return '%e lsp-proxy'
|
||||
\ . (!empty(l:options) ? ' ' . l:options : '')
|
||||
endfunction
|
||||
|
||||
function! ale#handlers#biome#GetLanguage(buffer) abort
|
||||
return getbufvar(a:buffer, '&filetype')
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user