]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Add error tracing when hover reply parsing fails
authorAndreas Louv <andreas@louv.dk>
Mon, 3 Apr 2023 22:05:14 +0000 (00:05 +0200)
committerAndreas Louv <andreas@louv.dk>
Mon, 3 Apr 2023 22:05:14 +0000 (00:05 +0200)
autoload/lsp/hover.vim

index 20698528ba4d0a502fec3c4f5e6ec0793e573d74..b5dc50f72c3ba7f08c01f3b6a9f83b7077098fb2 100644 (file)
@@ -22,6 +22,10 @@ def GetHoverText(hoverResult: any): list<any>
       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<any>
     return [hoverText, 'lspgfm']
   endif
 
+  util.TraceLog(
+    true,
+    $'{strftime("%m/%d/%y %T")}: Unsupported hover reply ({hoverResult})'
+  )
   return ['', '']
 enddef