From: shane.xb.qian Date: Fri, 24 Mar 2023 01:26:53 +0000 (+0800) Subject: none: adding 'LspDiagThis' test for ts X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=304238a2f81abcf9e2a3406528b0fb6b105b89aa;p=vim-lsp.git none: adding 'LspDiagThis' test for ts Signed-off-by: shane.xb.qian --- 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)