neovim

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

commit 512a90520e3287b9962ed7853d1f1021b564a133
parent 6a273af10517d1f7e4ea85635f1d25a9158adeb5
Author: Raphael <glephunter@gmail.com>
Date:   Sat, 13 May 2023 17:27:05 +0800

refactor(lsp): mark server_ready function as deprecated (#23520)


Diffstat:
Mruntime/doc/lsp.txt | 7-------
Mruntime/lua/vim/lsp/buf.lua | 2++
2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt @@ -1299,13 +1299,6 @@ rename({new_name}, {options}) *vim.lsp.buf.rename()* • name (string|nil): Restrict clients used for rename to ones where client.name matches this field. -server_ready() *vim.lsp.buf.server_ready()* - Checks whether the language servers attached to the current buffer are - ready. - - Return: ~ - `true` if server responds. - signature_help() *vim.lsp.buf.signature_help()* Displays signature information about the symbol under the cursor in a floating window. diff --git a/runtime/lua/vim/lsp/buf.lua b/runtime/lua/vim/lsp/buf.lua @@ -31,7 +31,9 @@ end --- ready. --- ---@returns `true` if server responds. +---@deprecated function M.server_ready() + vim.deprecate('vim.lsp.buf.server_ready', nil, '0.10.0') return not not vim.lsp.buf_notify(0, 'window/progress', {}) end