aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2025-04-05 19:13:13 -0700
committerGitHub <noreply@github.com>2025-04-06 02:13:13 +0000
commitfece4897940896f487559b955e4f8f76d48f299c (patch)
treea8118b7c352ff855d8c60ab1eadf615b1fa94cb4 /runtime/doc
parent28e819018520a2300eaeeec6794ffcd614b25dd2 (diff)
downloadrneovim-fece4897940896f487559b955e4f8f76d48f299c.tar.gz
rneovim-fece4897940896f487559b955e4f8f76d48f299c.tar.bz2
rneovim-fece4897940896f487559b955e4f8f76d48f299c.zip
refactor(lsp): deprecate client_is_stopped #33342
Problem: `client_is_stopped(…)` is an alias for `not get_client_by_id(…)`. And it's not used anywhere in our codebase. Solution: Deprecate it.
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/deprecated.txt3
-rw-r--r--runtime/doc/lsp.txt9
2 files changed, 2 insertions, 10 deletions
diff --git a/runtime/doc/deprecated.txt b/runtime/doc/deprecated.txt
index 7b0dc23ac0..219ecc8db1 100644
--- a/runtime/doc/deprecated.txt
+++ b/runtime/doc/deprecated.txt
@@ -29,7 +29,8 @@ HIGHLIGHTS
LSP
-• *vim.lsp.util.stylize_markdown()" Use |vim.treesitter.start()| with
+• *vim.lsp.client_is_stopped()* Use |vim.lsp.get_client_by_id()| instead.
+• *vim.lsp.util.stylize_markdown()* Use |vim.treesitter.start()| with
`vim.wo.conceallevel = 2`.
LUA
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index b3b11e2044..ba65635409 100644
--- a/runtime/doc/lsp.txt
+++ b/runtime/doc/lsp.txt
@@ -803,15 +803,6 @@ buf_request_sync({bufnr}, {method}, {params}, {timeout_ms})
(`string?`) err On timeout, cancel, or error, `err` is a string
describing the failure reason, and `result` is nil.
-client_is_stopped({client_id}) *vim.lsp.client_is_stopped()*
- Checks whether a client is stopped.
-
- Parameters: ~
- • {client_id} (`integer`)
-
- Return: ~
- (`boolean`) stopped true if client is stopped, false otherwise.
-
commands *vim.lsp.commands*
Registry (a table) for client-side handlers, for custom server-commands
that are not in the LSP specification.