Szymon Wilczek
c3f803c3b6
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 >
2026-05-06 08:55:34 -04:00
..
2026-04-28 10:05:06 -04:00
2026-04-29 17:37:47 -04:00
2026-04-29 17:37:47 -04:00
2026-04-01 07:59:51 +08:00
2026-04-16 10:48:11 -04:00
2026-04-22 01:24:49 +00:00
2025-11-28 10:10:31 +08:00
2026-05-06 08:15:00 -04:00
2026-04-25 11:16:18 -04:00
2026-02-12 13:46:45 +01:00
2026-04-15 12:09:25 +01:00
2024-05-15 23:19:26 +02:00
2026-04-15 12:09:25 +01:00
2026-04-29 17:37:47 -04:00
2026-04-25 11:16:18 -04:00
2026-05-06 07:01:21 -04:00
2026-04-16 10:48:11 -04:00
2025-11-10 11:13:56 +08:00
2026-04-21 15:54:08 +02:00
2026-03-16 07:46:34 -04:00
2026-04-18 15:38:59 -04:00
2025-11-10 11:13:56 +08:00
2025-12-06 20:33:02 -05:00
2025-05-03 10:08:53 -07:00
2025-05-03 10:08:53 -07:00
2023-06-25 17:14:28 +02:00
2026-04-03 21:38:44 +08:00
2025-09-07 20:45:22 -07:00
2026-04-29 17:37:47 -04:00
2025-04-27 10:32:25 -07:00
2026-04-18 15:38:59 -04:00
2026-03-15 19:02:49 -04:00
2025-11-10 11:13:56 +08:00
2026-03-19 11:10:54 +08:00
2026-01-27 17:14:57 -05:00
2025-11-10 11:13:56 +08:00
2026-04-23 17:11:59 -04:00
2026-04-18 15:38:59 -04:00
2026-01-09 16:38:26 +08:00
2026-04-16 10:48:11 -04:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2026-01-26 07:05:42 +08:00
2026-01-26 07:05:42 +08:00
2026-04-30 14:28:22 -07:00
2026-03-23 17:41:48 -04:00
2026-03-23 08:00:53 -04:00
2026-03-29 20:53:24 -04:00
2026-05-06 08:15:00 -04:00
2025-12-15 13:55:15 -05:00
2026-03-16 10:29:58 +01:00
2026-05-04 11:47:54 +08:00
2026-04-17 09:50:03 +08:00
2026-04-16 10:48:11 -04:00
2025-11-10 11:13:56 +08:00
2026-02-10 06:44:30 +08:00
2025-09-28 20:57:59 -07:00
2025-10-04 21:09:13 -07:00
2026-02-09 12:13:24 -05:00
2026-04-02 20:57:02 +08:00
2026-05-06 08:55:34 -04:00
2026-03-24 00:14:55 +01:00
2026-05-05 07:59:43 +08:00
2026-04-26 20:25:49 +02:00
2026-04-17 09:50:03 +08:00
2025-11-10 11:13:56 +08:00
2025-12-15 13:55:15 -05:00
2025-11-10 11:13:56 +08:00
2023-01-01 15:05:13 +01:00
2026-04-16 22:19:48 +08:00
2025-05-20 00:21:30 +00:00
2026-04-06 10:15:19 +08:00
2026-04-26 20:25:49 +02:00
2026-02-04 13:53:08 -05:00
2026-04-22 07:08:05 -04:00
2026-04-22 10:14:53 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2026-03-22 01:57:28 +01:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2026-04-16 10:48:11 -04:00
2026-04-22 13:40:41 -04:00
2026-04-22 18:25:07 -04:00
2026-04-27 06:21:25 +08:00
2025-11-10 11:13:56 +08:00
2026-04-28 23:18:02 +00:00
2026-05-05 10:29:49 +08:00
2025-11-10 11:13:56 +08:00
2026-05-06 06:16:58 -04:00
2025-12-15 02:07:51 -05:00
2026-01-07 08:11:42 +08:00
2026-03-24 00:14:55 +01:00
2026-04-17 09:50:03 +08:00
2025-11-10 11:13:56 +08:00
2026-02-13 16:39:18 +08:00
2025-12-06 20:33:02 -05:00
2025-11-10 11:13:56 +08:00
2026-04-12 14:17:50 +02:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-27 07:49:44 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2026-04-12 14:17:50 +02:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2026-02-13 16:39:18 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2026-03-11 12:39:49 +01:00
2025-11-10 11:13:56 +08:00
2025-12-15 13:55:15 -05:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-29 00:22:24 +00:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2026-04-11 02:47:31 -04:00
2025-11-10 11:13:56 +08:00
2026-02-13 16:39:18 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2026-04-28 07:20:43 +08:00
2025-11-10 11:13:56 +08:00
2026-04-29 17:37:47 -04:00
2026-04-17 09:50:03 +08:00
2026-05-06 08:55:34 -04:00
2025-11-10 11:13:56 +08:00
2026-04-29 17:37:47 -04:00
2026-02-14 07:59:51 +08:00