From: shane.xb.qian Date: Thu, 17 Nov 2022 11:31:32 +0000 (+0800) Subject: fix: check citem type and make sure it is dict X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=06bec57aa0f0aa85eec06f4fae6ab4128d5b8ea8;p=vim-lsp.git fix: check citem type and make sure it is dict --- diff --git a/autoload/lsp/completion.vim b/autoload/lsp/completion.vim index 47d99b8..5c6554e 100644 --- a/autoload/lsp/completion.vim +++ b/autoload/lsp/completion.vim @@ -183,7 +183,7 @@ enddef # process the 'completionItem/resolve' reply from the LSP server # Result: CompletionItem export def CompletionResolveReply(lspserver: dict, cItem: any) - if cItem->empty() + if cItem->empty() || cItem->type() != v:t_dict return endif