From: D4yvid Date: Thu, 13 Apr 2023 14:41:19 +0000 (-0300) Subject: fix: E716 when completing inside of a class with intelephense X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=6b026d62072b7c15bfb1a565a653527e5ca5e431;p=vim-lsp.git fix: E716 when completing inside of a class with intelephense --- diff --git a/autoload/lsp/completion.vim b/autoload/lsp/completion.vim index b760706..799b085 100644 --- a/autoload/lsp/completion.vim +++ b/autoload/lsp/completion.vim @@ -126,7 +126,10 @@ export def CompletionReply(lspserver: dict, cItems: any) items = cItems else items = cItems.items - lspserver.completeItemsIsIncomplete = cItems.isIncomplete + + if cItems->has_key("isIncomplete") + lspserver.completeItemsIsIncomplete = cItems.isIncomplete + endif endif # Get the keyword prefix before the current cursor column.