]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
fix: check citem type and make sure it is dict
authorshane.xb.qian <shane.qian@foxmail.com>
Thu, 17 Nov 2022 11:31:32 +0000 (19:31 +0800)
committershane.xb.qian <shane.qian@foxmail.com>
Thu, 17 Nov 2022 11:31:32 +0000 (19:31 +0800)
autoload/lsp/completion.vim

index 47d99b84248f98e4384b329666b60acd77d6cd01..5c6554e382459bd7a2645b1c2c5ef74c24d1423f 100644 (file)
@@ -183,7 +183,7 @@ enddef
 # process the 'completionItem/resolve' reply from the LSP server
 # Result: CompletionItem
 export def CompletionResolveReply(lspserver: dict<any>, cItem: any)
-  if cItem->empty()
+  if cItem->empty() || cItem->type() != v:t_dict
     return
   endif