mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-09 13:02:28 +08:00
#1700 - Stop handling completion results if you leave insert mode
This commit is contained in:
@@ -30,6 +30,11 @@ Before:
|
||||
\}
|
||||
endfunction
|
||||
|
||||
" Pretend we're in insert mode for most tests.
|
||||
function! ale#util#Mode(...) abort
|
||||
return 'i'
|
||||
endfunction
|
||||
|
||||
" Replace the Send function for LSP, so we can monitor calls to it.
|
||||
function! ale#lsp#Send(conn_id, message, ...) abort
|
||||
call add(g:message_list, a:message)
|
||||
@@ -49,6 +54,11 @@ After:
|
||||
unlet! b:ale_linters
|
||||
unlet! b:ale_tsserver_completion_names
|
||||
|
||||
" Reset the function.
|
||||
function! ale#util#Mode(...) abort
|
||||
return call('mode', a:000)
|
||||
endfunction
|
||||
|
||||
call ale#lsp#RemoveConnectionWithID(347)
|
||||
call ale#test#RestoreDirectory()
|
||||
call ale#linter#Reset()
|
||||
|
||||
Reference in New Issue
Block a user