From d0a262db88ab67941bdb26407bb0fd77ddcd86fb Mon Sep 17 00:00:00 2001 From: Barrett Ruth <62671086+barrettruth@users.noreply.github.com> Date: Sat, 4 Jul 2026 14:21:25 -0500 Subject: feat(channel): add ChanClose event #40568 Problem: Plugins using RPC sockets cannot detect when the peer closes a `sockconnect()` channel, so reconnect logic has no reliable trigger. Solution: Add a `ChanClose` event with channel info before the channel is removed, matching the existing `ChanOpen`/`ChanInfo` event model. --- runtime/lua/vim/_meta/api_keysets.gen.lua | 1 + runtime/lua/vim/_meta/options.gen.lua | 1 + 2 files changed, 2 insertions(+) (limited to 'runtime/lua') diff --git a/runtime/lua/vim/_meta/api_keysets.gen.lua b/runtime/lua/vim/_meta/api_keysets.gen.lua index 905d908811..d844d286b4 100644 --- a/runtime/lua/vim/_meta/api_keysets.gen.lua +++ b/runtime/lua/vim/_meta/api_keysets.gen.lua @@ -102,6 +102,7 @@ error('Cannot require a meta file') --- |'BufWriteCmd' --- |'BufWritePost' --- |'BufWritePre' +--- |'ChanClose' --- |'ChanInfo' --- |'ChanOpen' --- |'CmdUndefined' diff --git a/runtime/lua/vim/_meta/options.gen.lua b/runtime/lua/vim/_meta/options.gen.lua index d8773efc3b..fd06ffe365 100644 --- a/runtime/lua/vim/_meta/options.gen.lua +++ b/runtime/lua/vim/_meta/options.gen.lua @@ -2191,6 +2191,7 @@ vim.go.ei = vim.go.eventignore --- Note: The following events are considered to happen outside of a --- window context and thus cannot be ignored by 'eventignorewin': --- +--- `ChanClose`, --- `ChanInfo`, --- `ChanOpen`, --- `CmdUndefined`, -- cgit