mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
chore: rename progress_callback to progress_handler
This commit is contained in:
@@ -26,7 +26,7 @@ end
|
|||||||
|
|
||||||
-- @msg of type ProgressParams
|
-- @msg of type ProgressParams
|
||||||
-- Basically a token of type number/string
|
-- Basically a token of type number/string
|
||||||
local function progress_callback(_, _, params, client_id)
|
local function progress_handler(_, _, params, client_id)
|
||||||
local client = vim.lsp.get_client_by_id(client_id)
|
local client = vim.lsp.get_client_by_id(client_id)
|
||||||
local client_name = client and client.name or string.format("id=%d", client_id)
|
local client_name = client and client.name or string.format("id=%d", client_id)
|
||||||
if not client then
|
if not client then
|
||||||
@@ -62,7 +62,7 @@ local function progress_callback(_, _, params, client_id)
|
|||||||
end
|
end
|
||||||
|
|
||||||
--@see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#progress
|
--@see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#progress
|
||||||
M['$/progress'] = progress_callback
|
M['$/progress'] = progress_handler
|
||||||
|
|
||||||
--@see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#window_workDoneProgress_create
|
--@see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#window_workDoneProgress_create
|
||||||
M['window/workDoneProgress/create'] = function(_, _, params, client_id)
|
M['window/workDoneProgress/create'] = function(_, _, params, client_id)
|
||||||
|
Reference in New Issue
Block a user