neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit be5e3611541051d9fa5b752a4fe1da6ab78b141e
parent 68e2d722959dadc596edb9320bcdede38659db07
Author: Raphael <glepnir@neovim.pro>
Date:   Thu,  1 Jun 2023 14:38:38 +0800

fix(lsp): add param assert in client_is_stopped (#23857)


Diffstat:
Mruntime/lua/vim/lsp.lua | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua @@ -2275,7 +2275,8 @@ end ---@param client_id (integer) ---@return boolean stopped true if client is stopped, false otherwise. function lsp.client_is_stopped(client_id) - return active_clients[client_id] == nil + assert(client_id, 'missing client_id param') + return active_clients[client_id] == nil and not uninitialized_clients[client_id] end --- Gets a map of client_id:client pairs for the given buffer, where each value