mirror of
https://github.com/neovim/neovim.git
synced 2025-11-17 15:51:32 +00:00
feat(lsp): workspace diagnostic support (#34262)
* refactor(lsp): remove underscore prefix from local variables * feat(lsp): workspace diagnostic support
This commit is contained in:
committed by
GitHub
parent
d75ffa5934
commit
cb4559bc32
@@ -1015,6 +1015,21 @@ function M.workspace_symbol(query, opts)
|
||||
request_with_opts(ms.workspace_symbol, params, opts)
|
||||
end
|
||||
|
||||
--- @class vim.lsp.WorkspaceDiagnosticsOpts
|
||||
--- @inlinedoc
|
||||
---
|
||||
--- Only request diagnostics from the indicated client. If nil, the request is sent to all clients.
|
||||
--- @field client_id? integer
|
||||
|
||||
--- Request workspace-wide diagnostics.
|
||||
--- @param opts? vim.lsp.WorkspaceDiagnosticsOpts
|
||||
--- @see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#workspace_dagnostics
|
||||
function M.workspace_diagnostics(opts)
|
||||
vim.validate('opts', opts, 'table', true)
|
||||
|
||||
lsp.diagnostic._workspace_diagnostics(opts or {})
|
||||
end
|
||||
|
||||
--- Send request to the server to resolve document highlights for the current
|
||||
--- text document position. This request can be triggered by a key mapping or
|
||||
--- by events such as `CursorHold`, e.g.:
|
||||
|
||||
Reference in New Issue
Block a user