mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
fix issue 5037. "/s/c/" to "/s/c" (#5043)
Some checks failed
CI / build_image (push) Has been cancelled
CI / test_ale (--linters-only) (push) Has been cancelled
CI / test_ale (--lua-only) (push) Has been cancelled
CI / test_ale (--neovim-07-only) (push) Has been cancelled
CI / test_ale (--neovim-08-only) (push) Has been cancelled
CI / test_ale (--vim-80-only) (push) Has been cancelled
CI / test_ale (--vim-90-only) (push) Has been cancelled
Some checks failed
CI / build_image (push) Has been cancelled
CI / test_ale (--linters-only) (push) Has been cancelled
CI / test_ale (--lua-only) (push) Has been cancelled
CI / test_ale (--neovim-07-only) (push) Has been cancelled
CI / test_ale (--neovim-08-only) (push) Has been cancelled
CI / test_ale (--vim-80-only) (push) Has been cancelled
CI / test_ale (--vim-90-only) (push) Has been cancelled
a bug on windows. link: https://github.com/dense-analysis/ale/issues/5037
This commit is contained in:
@@ -531,7 +531,7 @@ function! ale#lsp#StartProgram(conn_id, executable, command) abort
|
|||||||
if g:ale_use_neovim_lsp_api && !l:conn.is_tsserver
|
if g:ale_use_neovim_lsp_api && !l:conn.is_tsserver
|
||||||
" For Windows from 'cmd /s/c "foo bar"' we need 'foo bar'
|
" For Windows from 'cmd /s/c "foo bar"' we need 'foo bar'
|
||||||
let l:lsp_cmd = has('win32') && type(a:command) is v:t_string
|
let l:lsp_cmd = has('win32') && type(a:command) is v:t_string
|
||||||
\ ? ['cmd', '/s/c/', a:command[10:-2]]
|
\ ? ['cmd', '/s/c', a:command[10:-2]]
|
||||||
\ : a:command
|
\ : a:command
|
||||||
|
|
||||||
" Always call lsp.start, which will either create or re-use a
|
" Always call lsp.start, which will either create or re-use a
|
||||||
|
|||||||
Reference in New Issue
Block a user