diff options
| author | Szymon Wilczek <kazikwilczek7@gmail.com> | 2026-05-06 14:55:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-06 08:55:34 -0400 |
| commit | c3f803c3b6d48eb885003dc12935785629150624 (patch) | |
| tree | 2a48dce92ed78c26377cc81f0f5c772be9f530dd /runtime/lua/vim/provider/python.lua | |
| parent | 0ea720f281985323c5f9b9cec06db8ef52fcea26 (diff) | |
| download | rneovim-c3f803c3b6d48eb885003dc12935785629150624.tar.gz rneovim-c3f803c3b6d48eb885003dc12935785629150624.tar.bz2 rneovim-c3f803c3b6d48eb885003dc12935785629150624.zip | |
feat(server): serverlist({info=true}) gets detailed info #39392
Problem:
UI tools and orchestration engines need more context than just raw
socket addresses from serverlist(). Without knowing if a server belongs
to the current instance or knowing its PID, UIs cannot display
meaningful options to users.
Solution:
- Added the `info=v:true` option to `serverlist()`.
- When `info` is requested, it implies `peer=true` and returns a list of
dictionaries (defined as `vim.ServerInfo`) with `addr`, `pid` and
`own`.
- Uses an RPC request to `getpid()` across the socket to fetch the
peer's actual process ID.
Signed-off-by: Szymon Wilczek <swilczek.lx@gmail.com>
Diffstat (limited to 'runtime/lua/vim/provider/python.lua')
0 files changed, 0 insertions, 0 deletions