Skip to content

Commit

Permalink
refactor(lsp): mark server_ready function as deprecated (#23520)
Browse files Browse the repository at this point in the history
  • Loading branch information
glepnir committed May 13, 2023
1 parent 6a273af commit 512a905
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 0 additions & 7 deletions runtime/doc/lsp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions runtime/lua/vim/lsp/buf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 512a905

Please sign in to comment.