]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
none: adding 'LspDiagThis' test for ts
authorshane.xb.qian <shane.qian@foxmail.com>
Fri, 24 Mar 2023 01:26:53 +0000 (09:26 +0800)
committershane.xb.qian <shane.qian@foxmail.com>
Fri, 24 Mar 2023 01:26:53 +0000 (09:26 +0800)
Signed-off-by: shane.xb.qian <shane.qian@foxmail.com>
test/tsserver_tests.vim

index 32c4131b0825e4ec61a9613a605881199b81ea2a..9ba8bcbbc87e1d41f560ae819415613f649a8a59 100644 (file)
@@ -59,6 +59,12 @@ def g:Test_LspDiag()
   assert_equal('', execute('LspDiagNext'))
   assert_equal([1, 10], [line('.'), col('.')])
 
+  :normal! 0
+  :LspDiagThis
+  assert_equal([1, 3], [line('.'), col('.')])
+  :LspDiagThis
+  assert_equal([1, 10], [line('.'), col('.')])
+
   g:LspOptionsSet({showDiagInPopup: false})
   for i in range(1, 3)
     cursor(1, i)