]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Print error when no alternate file can be found
authorAndreas Louv <andreas@louv.dk>
Mon, 3 Apr 2023 22:06:17 +0000 (00:06 +0200)
committerAndreas Louv <andreas@louv.dk>
Mon, 3 Apr 2023 22:06:17 +0000 (00:06 +0200)
autoload/lsp/lspserver.vim

index d8909033714c9f0719de70c220097dc929b501b1..220982570bf524b3bacf51acf8e740f2d6da6fed 100644 (file)
@@ -698,6 +698,7 @@ def SwitchSourceHeader(lspserver: dict<any>)
   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