mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-28 04:22:27 +08:00
Fix #4935 - Send tsserver messsages to tsserver in Neovim
This commit is contained in:
@@ -706,7 +706,7 @@ function! ale#lsp#Send(conn_id, message) abort
|
|||||||
throw 'LSP server not initialized yet!'
|
throw 'LSP server not initialized yet!'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if g:ale_use_neovim_lsp_api
|
if g:ale_use_neovim_lsp_api && !l:conn.is_tsserver
|
||||||
return luaeval('require("ale.lsp").send_message(_A)', {
|
return luaeval('require("ale.lsp").send_message(_A)', {
|
||||||
\ 'client_id': l:conn.client_id,
|
\ 'client_id': l:conn.client_id,
|
||||||
\ 'is_notification': a:message[0] == 1 ? v:true : v:false,
|
\ 'is_notification': a:message[0] == 1 ? v:true : v:false,
|
||||||
|
|||||||
Reference in New Issue
Block a user