From: Yegappan Lakshmanan Date: Fri, 7 Apr 2023 14:20:00 +0000 (-0700) Subject: Solargraph Ruby language server returns null in the 'detail' field in some completion... X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=fcbe77b3884517a84d8ce5331b14da24b3bf4678;p=vim-lsp.git Solargraph Ruby language server returns null in the 'detail' field in some completion items --- 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)