From: Andreas Louv Date: Mon, 3 Apr 2023 22:06:17 +0000 (+0200) Subject: Print error when no alternate file can be found X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=cbbe83645a4d2569338ba213747a974d58eb6316;p=vim-lsp.git Print error when no alternate file can be found --- diff --git a/autoload/lsp/lspserver.vim b/autoload/lsp/lspserver.vim index d890903..2209825 100644 --- a/autoload/lsp/lspserver.vim +++ b/autoload/lsp/lspserver.vim @@ -698,6 +698,7 @@ def SwitchSourceHeader(lspserver: dict) param.uri = util.LspFileToUri(@%) var reply = lspserver.rpc('textDocument/switchSourceHeader', param) if reply->empty() || reply.result->empty() + util.WarnMsg('Error: No alternate file found') return endif