From 304238a2f81abcf9e2a3406528b0fb6b105b89aa Mon Sep 17 00:00:00 2001
From: "shane.xb.qian" <shane.qian@foxmail.com>
Date: Fri, 24 Mar 2023 09:26:53 +0800
Subject: [PATCH] none: adding 'LspDiagThis' test for ts

Signed-off-by: shane.xb.qian <shane.qian@foxmail.com>
---
 test/tsserver_tests.vim | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/test/tsserver_tests.vim b/test/tsserver_tests.vim
index 32c4131..9ba8bcb 100644
--- a/test/tsserver_tests.vim
+++ b/test/tsserver_tests.vim
@@ -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)
-- 
2.51.0