From fcbe77b3884517a84d8ce5331b14da24b3bf4678 Mon Sep 17 00:00:00 2001 From: Yegappan Lakshmanan Date: Fri, 7 Apr 2023 07:20:00 -0700 Subject: [PATCH] Solargraph Ruby language server returns null in the 'detail' field in some completion items --- autoload/lsp/completion.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/lsp/completion.vim b/autoload/lsp/completion.vim index 4d04190..4c83d03 100644 --- a/autoload/lsp/completion.vim +++ b/autoload/lsp/completion.vim @@ -269,7 +269,7 @@ export def CompletionResolveReply(lspserver: dict, cItem: any) var infoText: list var infoKind: string - if cItem->has_key('detail') + if cItem->has_key('detail') && !cItem.detail->empty() # Solve a issue where if a server send the detail field with "\n", # on the completion popup, everything will be joined with "^@" # (example: typescript-language-server) -- 2.48.1