mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix(lsp): fix infinite loop in resolved_capabilities deprecation message (#18333)
Co-authored-by: ii14 <ii14@users.noreply.github.com>
This commit is contained in:
parent
0344736aa6
commit
039d60bd9c
@ -971,10 +971,10 @@ function lsp.start_client(config)
|
|||||||
"update your plugins or configuration to access client.server_capabilities instead." ..
|
"update your plugins or configuration to access client.server_capabilities instead." ..
|
||||||
"The new key/value pairs in server_capabilities directly match those " ..
|
"The new key/value pairs in server_capabilities directly match those " ..
|
||||||
"defined in the language server protocol", vim.log.levels.WARN)
|
"defined in the language server protocol", vim.log.levels.WARN)
|
||||||
table[key] = protocol._resolve_capabilities_compat(client.server_capabilities)
|
rawset(table, key, protocol._resolve_capabilities_compat(client.server_capabilities))
|
||||||
return table[key]
|
return rawget(table, key)
|
||||||
else
|
else
|
||||||
return table[key]
|
return rawget(table, key)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
setmetatable(client, mt)
|
setmetatable(client, mt)
|
||||||
|
Loading…
Reference in New Issue
Block a user