#2132 - Support deferred execution for LSP executables, commands, and addresses

This commit is contained in:
w0rp
2019-02-27 23:26:32 +00:00
parent 37a1d24a36
commit c4328f2a31
3 changed files with 479 additions and 41 deletions

View File

@@ -57,6 +57,15 @@ function! ale#lsp#RemoveConnectionWithID(id) abort
endif
endfunction
function! ale#lsp#ResetConnections() abort
let s:connections = {}
endfunction
" Used only in tests.
function! ale#lsp#GetConnections() abort
return s:connections
endfunction
" This is only needed for tests
function! ale#lsp#MarkDocumentAsOpen(id, buffer) abort
let l:conn = get(s:connections, a:id, {})