mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-09 21:12:31 +08:00
Fix #3294 - Fix hover off by 1, handle LSP server crashes
This commit is contained in:
@@ -64,6 +64,9 @@ endfunction
|
||||
|
||||
" Used only in tests.
|
||||
function! ale#lsp#GetConnections() abort
|
||||
" This command will throw from the sandbox.
|
||||
let &l:equalprg=&l:equalprg
|
||||
|
||||
return s:connections
|
||||
endfunction
|
||||
|
||||
@@ -449,6 +452,7 @@ function! ale#lsp#StartProgram(conn_id, executable, command) abort
|
||||
endif
|
||||
|
||||
if l:started && !l:conn.is_tsserver
|
||||
let l:conn.initialized = 0
|
||||
call s:SendInitMessage(l:conn)
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user