From: Yegappan Lakshmanan Date: Fri, 24 Mar 2023 15:09:24 +0000 (-0700) Subject: Fix test failure X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=152338cd92bd930dab42f37398f3ba3780816000;p=vim-lsp.git Fix test failure --- diff --git a/README.md b/README.md index dd918d0..c7d8aae 100644 --- a/README.md +++ b/README.md @@ -149,12 +149,12 @@ Command|Description :LspCodeAction|Apply the code action supplied by the language server to the diagnostic in the current line. :LspDiagCurrent|Display the diagnostic message for the current line :LspDiagFirst|Jump to the first diagnostic message for the current buffer +:LspDiagHere|Jump to the next diagnostic message in the current line :LspDiagHighlightDisable|Disable diagnostic message highlights :LspDiagHighlightEnable|Enable diagnostic message highlights :LspDiagNext|Jump to the next diagnostic message after the current position :LspDiagPrev|Jump to the previous diagnostic message before the current position :LspDiagShow|Display the diagnostics messages from the language server for the current buffer in a new location list. -:LspDiagHere|Jump to the current diagnostic message in the current line :LspFold|Fold the current file :LspFormat|Format a range of lines in the current file using the language server. The **shiftwidth** and **expandtab** values set for the current buffer are used when format is applied. The default range is the entire file. :LspGotoDeclaration|Go to the declaration of the keyword under cursor diff --git a/doc/lsp.txt b/doc/lsp.txt index 93f2b38..88826b9 100644 --- a/doc/lsp.txt +++ b/doc/lsp.txt @@ -73,6 +73,8 @@ The following commands are provided: :LspDiagCurrent Display the diagnostic message for the current line. :LspDiagFirst Jump to the first diagnostic message for the current buffer. +:LspDiagHere Jump to the next diagnostic message in the current + line. :LspDiagHighlightDisable Disable highlighting lines with a diagnostic message for the current Vim session. @@ -84,8 +86,6 @@ The following commands are provided: buffer before the current current position. :LspDiagShow Display the diagnostics messages from the language server for the current buffer in a location list. -:LspDiagHere Jump to the current diagnostic message for the current - buffer in the current line (start from current column). :LspFold Fold the current file :LspFormat Format a range of lines in the current file using the language server. The default range is the entire file. diff --git a/test/tsserver_tests.vim b/test/tsserver_tests.vim index ee76619..8f00dae 100644 --- a/test/tsserver_tests.vim +++ b/test/tsserver_tests.vim @@ -62,8 +62,10 @@ def g:Test_LspDiag() :normal! 0 :LspDiagHere assert_equal([1, 3], [line('.'), col('.')]) + :normal! l :LspDiagHere assert_equal([1, 10], [line('.'), col('.')]) + popup_clear() g:LspOptionsSet({showDiagInPopup: false}) for i in range(1, 3)