diff options
author | Jongwook Choi <wookayin@gmail.com> | 2024-01-09 18:04:27 -0500 |
---|---|---|
committer | Mathias Fußenegger <mfussenegger@users.noreply.github.com> | 2024-01-14 09:02:45 +0100 |
commit | ce4ea638c703275aedadb3794efc56dcb782c908 (patch) | |
tree | fb87b6bffed8bf18670b84aaec668194e2b721ba /runtime/lua/vim/_system.lua | |
parent | 92c59c39c3d98d313071f9761c448e8acfd00118 (diff) | |
download | rneovim-ce4ea638c703275aedadb3794efc56dcb782c908.tar.gz rneovim-ce4ea638c703275aedadb3794efc56dcb782c908.tar.bz2 rneovim-ce4ea638c703275aedadb3794efc56dcb782c908.zip |
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
Diffstat (limited to 'runtime/lua/vim/_system.lua')
-rw-r--r-- | runtime/lua/vim/_system.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/_system.lua b/runtime/lua/vim/_system.lua index 9e935b7e95..efad3f88cf 100644 --- a/runtime/lua/vim/_system.lua +++ b/runtime/lua/vim/_system.lua @@ -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 |