aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
authorRaphael <glephunter@gmail.com>2023-02-24 19:55:50 +0800
committerGitHub <noreply@github.com>2023-02-24 12:55:50 +0100
commit1803dadb209b9193ad8673b243091a4602b3a855 (patch)
tree815b57b81a75a82660299150acc57fc84d371c39 /runtime/lua/vim
parent04a6369da530232eda4f5daa2addac8eb16eb126 (diff)
downloadrneovim-1803dadb209b9193ad8673b243091a4602b3a855.tar.gz
rneovim-1803dadb209b9193ad8673b243091a4602b3a855.tar.bz2
rneovim-1803dadb209b9193ad8673b243091a4602b3a855.zip
refactor(lsp): remove deprecated code (#22389)
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r--runtime/lua/vim/lsp.lua20
1 files changed, 0 insertions, 20 deletions
diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua
index 0a620e1367..206c7c9b7e 100644
--- a/runtime/lua/vim/lsp.lua
+++ b/runtime/lua/vim/lsp.lua
@@ -1294,26 +1294,6 @@ function lsp.start_client(config)
client.server_capabilities =
assert(result.capabilities, "initialize result doesn't contain capabilities")
client.server_capabilities = protocol.resolve_capabilities(client.server_capabilities)
-
- -- Deprecation wrapper: this will be removed in 0.8
- local mt = {}
- mt.__index = function(table, key)
- if key == 'resolved_capabilities' then
- vim.notify_once(
- '[LSP] Accessing client.resolved_capabilities is deprecated, '
- .. 'update your plugins or configuration to access client.server_capabilities instead.'
- .. 'The new key/value pairs in server_capabilities directly match those '
- .. 'defined in the language server protocol',
- vim.log.levels.WARN
- )
- rawset(table, key, protocol._resolve_capabilities_compat(client.server_capabilities))
- return rawget(table, key)
- else
- return rawget(table, key)
- end
- end
- setmetatable(client, mt)
-
client.supports_method = function(method)
local required_capability = lsp._request_name_to_capability[method]
-- if we don't know about the method, assume that the client supports it.