mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
fix(biome): send correct language to lsp proxy (#4773)
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
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
call ale#linter#Define('javascript', {
|
||||
\ 'name': 'biome',
|
||||
\ 'lsp': 'stdio',
|
||||
\ 'language': function('ale#handlers#biome#GetLanguage'),
|
||||
\ 'executable': function('ale#handlers#biome#GetExecutable'),
|
||||
\ 'command': function('ale#handlers#biome#GetCommand'),
|
||||
\ 'project_root': function('ale#handlers#biome#GetProjectRoot'),
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
call ale#linter#Define('typescript', {
|
||||
\ 'name': 'biome',
|
||||
\ 'lsp': 'stdio',
|
||||
\ 'language': function('ale#handlers#biome#GetLanguage'),
|
||||
\ 'executable': function('ale#handlers#biome#GetExecutable'),
|
||||
\ 'command': function('ale#handlers#biome#GetCommand'),
|
||||
\ 'project_root': function('ale#handlers#biome#GetProjectRoot'),
|
||||
|
||||
Reference in New Issue
Block a user