From: Andreas Louv Date: Mon, 3 Apr 2023 22:06:37 +0000 (+0200) Subject: Always print no references found error when there are no references X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=0b7b3618180577735d2c5edf84f5fed178a21892;p=vim-lsp.git Always print no references found error when there are no references --- diff --git a/autoload/lsp/lspserver.vim b/autoload/lsp/lspserver.vim index 2209825..b93d885 100644 --- a/autoload/lsp/lspserver.vim +++ b/autoload/lsp/lspserver.vim @@ -780,11 +780,7 @@ def ShowReferences(lspserver: dict, peek: bool): void var reply = lspserver.rpc('textDocument/references', param) # Result: Location[] | null - if reply->empty() - return - endif - - if reply.result->empty() + if reply->empty() || reply.result->empty() util.WarnMsg('Error: No references found') return endif