mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
fix(lsp): fix incorrect typing and doc for vim.lsp.rpc
Typings introduced in #26032 and #26552 have a few conflicts, so we merge and clean them up. We also fix some incorrect type annotation in the `vim.lsp.rpc` package. See the associated PR for more details. Summary: - vim.rpc.Dispatchers -> vim.lsp.rpc.Dispatchers - vim.lsp.rpc.Error -> lsp.ResponseError - Revise docs
This commit is contained in:
committed by
Mathias Fußenegger
parent
92c59c39c3
commit
ce4ea638c7
@ -61,7 +61,7 @@ end
|
||||
--- @field wait fun(self: vim.SystemObj, timeout?: integer): vim.SystemCompleted
|
||||
--- @field kill fun(self: vim.SystemObj, signal: integer|string)
|
||||
--- @field write fun(self: vim.SystemObj, data?: string|string[])
|
||||
--- @field is_closing fun(self: vim.SystemObj): boolean?
|
||||
--- @field is_closing fun(self: vim.SystemObj): boolean
|
||||
local SystemObj = {}
|
||||
|
||||
--- @param state vim.SystemState
|
||||
@ -140,7 +140,7 @@ end
|
||||
--- @return boolean
|
||||
function SystemObj:is_closing()
|
||||
local handle = self._state.handle
|
||||
return handle == nil or handle:is_closing()
|
||||
return handle == nil or handle:is_closing() or false
|
||||
end
|
||||
|
||||
---@param output fun(err:string?, data: string?)|false
|
||||
|
Reference in New Issue
Block a user