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

This commit is contained in:
Raphael
2023-05-13 17:27:05 +08:00
committed by GitHub
parent 6a273af105
commit 512a90520e
2 changed files with 2 additions and 7 deletions

View File

@@ -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