* fix(#2519): diagnostics overhaul
Signed-off-by: iusmac <iusico.maxim@libero.it>
* fix: Properly filter diagnostics from coc
Also, while we're at it, refactor the lsp function for consistency.
There should be no functional change, just cosmetic.
Signed-off-by: iusmac <iusico.maxim@libero.it>
* Assign diagnostic version per node to reduce overhead
Signed-off-by: iusmac <iusico.maxim@libero.it>
* Require renderer once
Signed-off-by: iusmac <iusico.maxim@libero.it>
* Revert "Require renderer once"
Causes circular requires after the previous commit.
This reverts commit 7413041630.
* Rename `buffer_severity_dict` to `BUFFER_SEVERITY`
Signed-off-by: iusmac <iusico.maxim@libero.it>
* Log diagnostics update properly
Signed-off-by: iusmac <iusico.maxim@libero.it>
* Implement error handling for coc.nvim
Signed-off-by: iusmac <iusico.maxim@libero.it>
* CI style fixes
Signed-off-by: iusmac <iusico.maxim@libero.it>
* Capture `Keyboard interrupt` when handling coc exceptions
Signed-off-by: iusmac <iusico.maxim@libero.it>
* add more doc
---------
Signed-off-by: iusmac <iusico.maxim@libero.it>
Co-authored-by: Alexander Courtis <alex@courtis.org>
39 lines
912 B
Lua
39 lines
912 B
Lua
---@meta
|
|
|
|
-- TODO add "${3rd}/luv/library" to "workspace.library"
|
|
---@class uv.uv_req_t: table
|
|
---@class uv.uv_fs_t: uv.uv_req_t
|
|
|
|
---@class ParentNode
|
|
---@field name string
|
|
|
|
---@class BaseNode
|
|
---@field absolute_path string
|
|
---@field executable boolean
|
|
---@field fs_stat uv.uv_fs_t
|
|
---@field git_status GitStatus|nil
|
|
---@field hidden boolean
|
|
---@field name string
|
|
---@field parent DirNode
|
|
---@field type string
|
|
---@field watcher function|nil
|
|
---@field diag_status DiagStatus|nil
|
|
|
|
---@class DirNode: BaseNode
|
|
---@field has_children boolean
|
|
---@field group_next Node|nil
|
|
---@field nodes Node[]
|
|
---@field open boolean
|
|
|
|
---@class FileNode: BaseNode
|
|
---@field extension string
|
|
|
|
---@class SymlinkDirNode: DirNode
|
|
---@field link_to string
|
|
|
|
---@class SymlinkFileNode: FileNode
|
|
---@field link_to string
|
|
|
|
---@alias SymlinkNode SymlinkDirNode|SymlinkFileNode
|
|
---@alias Node ParentNode|DirNode|FileNode|SymlinkNode|Explorer
|