Commit Graph

21 Commits

Author SHA1 Message Date
mattn
516fd7ce95 diagnostics list can be v:null (#1190)
* diagnostics list can be v:null

Ref #1186

* ditto

* Small refactoring

* Use lsp#utils#iteratable for the list which possibly be v:null
2021-06-09 01:51:59 +09:00
mattn
61916a2ddd diagnostics list can be v:null (#1186)
* diagnostics can be v:null

* Fix indentation
2021-06-08 00:50:31 +09:00
Prabir Shrestha
5277fc47f0 Revert "only call prop_remove if we have props to avoid clearing of welcome message for vim (#1084)" (#1145)
This reverts commit 627dab05e8.
2021-04-13 15:15:00 -07:00
Linda_pp
ce3add957a Fix document layout and misspellings (#1127)
* fix document layout

* fix misspellings
2021-03-31 23:09:06 +09:00
Prabir Shrestha
627dab05e8 only call prop_remove if we have props to avoid clearing of welcome message for vim (#1084) 2021-03-02 19:55:48 -08:00
Prabir Shrestha
268341fe60 Diagnostics refactor movements (#1004) 2021-01-02 13:59:31 -08:00
Prabir Shrestha
7c43b01635 refactor diagnostics get buffer first error line to use the new internal state (#1003) 2021-01-02 13:06:07 -08:00
mattn
e846a999f7 Fix function argument (#1002)
Fixes #1000
2021-01-02 12:09:12 -08:00
Prabir Shrestha
098509278d refactor diagnostics count to using diagnostics state (#999) 2021-01-02 00:14:05 -08:00
Prabir Shrestha
2eb8d16413 refactor diagnostics under cursor to use the new internal diagnostics state (#997) 2021-01-01 11:31:07 -08:00
Prabir Shrestha
efd07d859e Revamp diagnostics highlights (#995) 2020-12-31 23:13:19 -08:00
Prabir Shrestha
5743ae2110 Diagnostics signs revamp (#994) 2020-12-31 01:23:26 -08:00
Prabir Shrestha
bc98be823d add enable check (#993) 2020-12-30 15:41:22 -08:00
Prabir Shrestha
1489cf8295 Revamp diagnostics virtual text (#990) 2020-12-30 14:49:44 -08:00
Prabir Shrestha
6bb6069f94 Diagnostics for all buffers (#982)
* render diagnostics in loclist and fix args paser
* document --buffers flag for LspDocumentDiagnostics
* do not show diagnostics if it is disabled for buffer
* remove old code and fix plug mapping for lsp-document-diagnostics
* add unit tests for document diagnostics command
2020-12-27 22:44:18 -08:00
Prabir Shrestha
5af4e7cdaa use buf var for buffer level diagnostics enabled flag (#983) 2020-12-27 20:23:11 -08:00
Prabir Shrestha
8f5bec6ce9 add buffer state of disabled diagnostics state (#981) 2020-12-27 18:29:22 -08:00
Prabir Shrestha
778ebd3ca2 add internal/diagnostics/state.vim (#978)
* add internal/diagnostics/state.vim

* add unit tests

* add s:enabled

* clean up diagnostics state during server exit

* remove echom

* add tests for lsp_server_exit

* reset when enable

* add notify function

* add link to diagnostics spec
2020-12-27 11:27:17 -08:00
Prabir Shrestha
a9ac38e0f4 update callbag.vim to v0.3.0 and better handling of errors using materalize (#899)
* use materialize() for highlight references
* re-enable highlight references by default
* unlet s:Dispose()
* fix checking for isUndefined()
* update callbag to v0.3.0
* dispose if exists
2020-08-31 21:02:34 -07:00
Prabir Shrestha
9389c28ae2 migrate diagnostics float cursor to use callbag (#846)
* use callbag for diagnostics float cursor
* fix feature flag test
2020-06-26 11:15:31 -07:00
Prabir Shrestha
c245bfd7a4 use callbag (#845)
* add callbag.vim

* add diagnostics

* add comments

* implement cancel

* optimize cancelled=1

* handle more cancel cases

* use callbag for echo.vim

* rename to _enable() _disable() and also check for changedtick

* move to internal

* group lsp#request

* ignore terminal for echo

* dont bother to subscribe if diagnostics echo not enabled

* remove deprecation comment

* update callbag.vim to v0.1.0

* fix lint issues
2020-06-25 07:42:28 -07:00