mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
refactor(lsp): use method type annotations for parameters
This commit is contained in:

committed by
Christian Clason

parent
351613bc1f
commit
d55330bcd1
@@ -482,7 +482,7 @@ local function public_client(client)
|
||||
|
||||
--- Sends a request to the LSP server and runs {callback} upon response.
|
||||
---
|
||||
---@param method (string) The invoked LSP method
|
||||
---@param method (vim.lsp.protocol.Method.ClientToServer.Request) The invoked LSP method
|
||||
---@param params (table?) Parameters for the invoked LSP method
|
||||
---@param callback fun(err: lsp.ResponseError?, result: any) Callback to invoke
|
||||
---@param notify_reply_callback? fun(message_id: integer) Callback to invoke as soon as a request is no longer pending
|
||||
@@ -493,7 +493,7 @@ local function public_client(client)
|
||||
end
|
||||
|
||||
--- Sends a notification to the LSP server.
|
||||
---@param method (string) The invoked LSP method
|
||||
---@param method (vim.lsp.protocol.Method.ClientToServer.Notification) The invoked LSP method
|
||||
---@param params (table?) Parameters for the invoked LSP method
|
||||
---@return boolean `true` if notification could be sent, `false` if not
|
||||
function result.notify(method, params)
|
||||
|
Reference in New Issue
Block a user