mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
fix(lsp): announce diagnostic tag support (#34436)
This commit also adds a type annotation to the returned client
capabilities table, because without it lua_ls does not provide
autocompletion for the fields within the table.
(cherry picked from commit bac133e4b6
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
c5bc0289ed
commit
0f1cada0f7
@@ -329,6 +329,7 @@ end
|
||||
--- capabilities.
|
||||
--- @return lsp.ClientCapabilities
|
||||
function protocol.make_client_capabilities()
|
||||
---@type lsp.ClientCapabilities
|
||||
return {
|
||||
general = {
|
||||
positionEncodings = {
|
||||
@@ -340,6 +341,9 @@ function protocol.make_client_capabilities()
|
||||
textDocument = {
|
||||
diagnostic = {
|
||||
dynamicRegistration = false,
|
||||
tagSupport = {
|
||||
valueSet = get_value_set(constants.DiagnosticTag),
|
||||
},
|
||||
},
|
||||
inlayHint = {
|
||||
dynamicRegistration = true,
|
||||
|
Reference in New Issue
Block a user