Skip to content

Commit

Permalink
type number
Browse files Browse the repository at this point in the history
  • Loading branch information
prabirshrestha committed Feb 25, 2024
1 parent d11baa7 commit 1ccca16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/lsp/client.vim
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ function! lsp#client#send_response(client_id, opts) abort
catch
" vim only supports id as number and fails when string, hence add a try catch: https://github.com/vim/vim/issues/14091
call lsp#log('lsp#client#send_response error', v:exception, v:throwpoint,
\ has_key(l:request, 'id') && type(l:request['id']) != 'number')
\ has_key(l:request, 'id') && type(l:request['id']) != type(1))
endtry
return 0
else
Expand Down

0 comments on commit 1ccca16

Please sign in to comment.