]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
fix: user_data maybe empty otherwise mis-type err.
authorshane.xb.qian <shane.qian@foxmail.com>
Sun, 23 Oct 2022 18:03:03 +0000 (02:03 +0800)
committershane.xb.qian <shane.qian@foxmail.com>
Sun, 23 Oct 2022 18:03:03 +0000 (02:03 +0800)
autoload/lsp/lsp.vim

index 4a0025aee9f556c19b8dc23c9cc617c91aebdc92..1fc14e928c2c38225ff4106469393d3e2bc7fac8 100644 (file)
@@ -606,7 +606,7 @@ def g:LspResolve()
   endif
 
   var item = v:event.completed_item
-  if item->has_key('user_data')
+  if item->has_key('user_data') && !empty(item.user_data)
     lspserver.resolveCompletion(item.user_data)
   endif
 enddef