Skip to content

Commit

Permalink
fix(docs): update lsp.rpc.start docs to match return value changes
Browse files Browse the repository at this point in the history
Follow up to #19916
  • Loading branch information
mfussenegger committed Aug 30, 2022
1 parent 568737d commit c147541
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
7 changes: 2 additions & 5 deletions runtime/doc/lsp.txt
Expand Up @@ -1981,11 +1981,8 @@ start({cmd}, {cmd_args}, {dispatchers}, {extra_spawn_params})
Methods:
`notify()` |vim.lsp.rpc.notify()|
`request()` |vim.lsp.rpc.request()|

Members:
{pid} (number) The LSP server's PID.
{handle} A handle for low-level interaction with the LSP server
process |vim.loop|.
`is_closing()` returns a boolean indicating if the RPC is closing.
`terminate()` terminates the RPC client.


==============================================================================
Expand Down
7 changes: 2 additions & 5 deletions runtime/lua/vim/lsp/rpc.lua
Expand Up @@ -654,11 +654,8 @@ end
---@returns Methods:
--- - `notify()` |vim.lsp.rpc.notify()|
--- - `request()` |vim.lsp.rpc.request()|
---
---@returns Members:
--- - {pid} (number) The LSP server's PID.
--- - {handle} A handle for low-level interaction with the LSP server process
--- |vim.loop|.
--- - `is_closing()` returns a boolean indicating if the RPC is closing.
--- - `terminate()` terminates the RPC client.
local function start(cmd, cmd_args, dispatchers, extra_spawn_params)
local _ = log.info()
and log.info('Starting RPC client', { cmd = cmd, args = cmd_args, extra = extra_spawn_params })
Expand Down

0 comments on commit c147541

Please sign in to comment.