diff options
| author | Olivia Kinnear <account@superatomic.dev> | 2025-11-10 20:27:13 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-10 18:27:13 -0800 |
| commit | 7c9b865bdd1a27a4db044cbde53a17b06a8317c7 (patch) | |
| tree | c4c4e661cfd484b48ef56bfb8c244ca7a43ca57b /runtime/lua/vim/lsp.lua | |
| parent | 637c9c4f5f21b4be55b357c6e0312f06402ed7d5 (diff) | |
| download | rneovim-7c9b865bdd1a27a4db044cbde53a17b06a8317c7.tar.gz rneovim-7c9b865bdd1a27a4db044cbde53a17b06a8317c7.tar.bz2 rneovim-7c9b865bdd1a27a4db044cbde53a17b06a8317c7.zip | |
feat(lsp): deprecate `vim.lsp.stop_client` (#36459)
* feat(lsp): deprecate `vim.lsp.stop_client`
* fix(tests): fix nil variable in diagnostic_spec.lua
Diffstat (limited to 'runtime/lua/vim/lsp.lua')
| -rw-r--r-- | runtime/lua/vim/lsp.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua index 97cf8c55c3..3cdc9692ce 100644 --- a/runtime/lua/vim/lsp.lua +++ b/runtime/lua/vim/lsp.lua @@ -1058,9 +1058,13 @@ end --- By default asks the server to shutdown, unless stop was requested --- already for this client, then force-shutdown is attempted. --- +---@deprecated ---@param client_id integer|integer[]|vim.lsp.Client[] id, list of id's, or list of |vim.lsp.Client| objects ----@param force? boolean shutdown forcefully +---@param force? boolean|integer Whether to shutdown forcefully. +--- If `force` is a number, it will be treated as the time in milliseconds to +--- wait before forcing the shutdown. function lsp.stop_client(client_id, force) + vim.deprecate('vim.lsp.stop_client()', 'vim.lsp.Client:stop()', '0.13') --- @type integer[]|vim.lsp.Client[] local ids = type(client_id) == 'table' and client_id or { client_id } for _, id in ipairs(ids) do |