mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
feat(lsp): deprecate non-method client functions
Deprecated: - `client.request()` -> `client:request()` - `client.request_sync()` -> `client:request_sync()` - `client.notify()` -> `client:notify()` - `client.cancel_request()` -> `client:cancel_request()` - `client.stop()` -> `client:stop()` - `client.is_stopped()` `client:is_stopped()` - `client.supports_method()` -> `client:supports_method()` - `client.on_attach()` -> `client:on_attach()` Fixed docgen to link class fields to the full function doc.
This commit is contained in:
committed by
Lewis Russell
parent
f55c842ec7
commit
454ae672aa
@@ -2122,7 +2122,7 @@ function M._refresh(method, opts)
|
||||
local first = vim.fn.line('w0', window)
|
||||
local last = vim.fn.line('w$', window)
|
||||
for _, client in ipairs(clients) do
|
||||
client.request(method, {
|
||||
client:request(method, {
|
||||
textDocument = textDocument,
|
||||
range = make_line_range_params(bufnr, first - 1, last - 1, client.offset_encoding),
|
||||
}, nil, bufnr)
|
||||
@@ -2131,7 +2131,7 @@ function M._refresh(method, opts)
|
||||
end
|
||||
else
|
||||
for _, client in ipairs(clients) do
|
||||
client.request(method, {
|
||||
client:request(method, {
|
||||
textDocument = textDocument,
|
||||
range = make_line_range_params(
|
||||
bufnr,
|
||||
|
||||
Reference in New Issue
Block a user