docs(lsp): document rpc Client request/notify as fields #40573

Problem:
`request()` and `notify()` are methods of the object returned by
`vim.lsp.rpc.start()`/`connect()`, but were rendered with module-level
helptags (`vim.lsp.rpc.request()`, `vim.lsp.rpc.notify()`) (erroneously
implying module functions that do not exist).

Solution:
Mark the wrappers `@private` and describe them on `vim.lsp.rpc.Client` instead.
This commit is contained in:
Barrett Ruth
2026-07-04 08:24:25 -05:00
committed by GitHub
parent 00917aa6f6
commit 6cbc5ea13d
3 changed files with 10 additions and 40 deletions

View File

@@ -72,7 +72,7 @@ end
--- end
--- ```
---
--- - See |vim.lsp.rpc.request()| |vim.lsp.rpc.notify()|
--- - See |vim.lsp.rpc.Client|.
--- - For TCP there is a builtin RPC client factory: |vim.lsp.rpc.connect()|
--- @field cmd string[]|fun(dispatchers: vim.lsp.rpc.Dispatchers, config: vim.lsp.ClientConfig): vim.lsp.rpc.Client
---