From: Andreas Louv Date: Mon, 3 Apr 2023 22:05:14 +0000 (+0200) Subject: Add error tracing when hover reply parsing fails X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=e0391f2cba9666521de76d49ba96e8be6841d8b6;p=vim-lsp.git Add error tracing when hover reply parsing fails --- diff --git a/autoload/lsp/hover.vim b/autoload/lsp/hover.vim index 2069852..b5dc50f 100644 --- a/autoload/lsp/hover.vim +++ b/autoload/lsp/hover.vim @@ -22,6 +22,10 @@ def GetHoverText(hoverResult: any): list return [hoverResult.contents.value->split("\n"), 'lspgfm'] endif + util.TraceLog( + true, + $'{strftime("%m/%d/%y %T")}: Unsupported hover contents kind ({hoverResult.contents.kind})' + ) return ['', ''] endif @@ -61,6 +65,10 @@ def GetHoverText(hoverResult: any): list return [hoverText, 'lspgfm'] endif + util.TraceLog( + true, + $'{strftime("%m/%d/%y %T")}: Unsupported hover reply ({hoverResult})' + ) return ['', ''] enddef