mirror of
https://github.com/prabirshrestha/vim-lsp.git
synced 2025-12-14 20:35:59 +01:00
added lsp#lspClient#is_error
This commit is contained in:
@@ -153,6 +153,10 @@ function! s:lsp_get_last_request_id(id)
|
||||
return s:lsp_clients[a:id].req_seq
|
||||
endfunction
|
||||
|
||||
function! s:lsp_is_error(notification)
|
||||
return has_key(a:notification, 'error')
|
||||
endfunction
|
||||
|
||||
" public apis {{{
|
||||
|
||||
function! lsp#lspClient#start(opts)
|
||||
@@ -171,6 +175,10 @@ function! lsp#lspClient#get_last_request_id(client_id)
|
||||
return s:lsp_get_last_request_id(a:client_id)
|
||||
endfunction
|
||||
|
||||
function! lsp#lspClient#is_error(notification)
|
||||
return s:lsp_is_error(a:notification)
|
||||
endfunction
|
||||
|
||||
" }}}
|
||||
|
||||
let &cpo = s:save_cpo
|
||||
|
||||
Reference in New Issue
Block a user