diff options
Diffstat (limited to 'runtime/lua/vim/_core/server.lua')
| -rw-r--r-- | runtime/lua/vim/_core/server.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/_core/server.lua b/runtime/lua/vim/_core/server.lua index 9c18b3811e..8ffcb97449 100644 --- a/runtime/lua/vim/_core/server.lua +++ b/runtime/lua/vim/_core/server.lua @@ -46,10 +46,10 @@ M.restart_canonical_addr = nil ---@type string? --- Windows named pipes can't be rebound immediately, so the new server starts on a --- temporary bootstrap address and polls until the canonical address is reclaimable. --- @param canonical_addr string The original --listen address to reclaim. ---- @param bootstrap_addr string Temporary address the new server started on. --- @param expected_uis integer Number of UIs expected to reattach (0 = don't wait). -function M.rebind_old_addr_after_restart(canonical_addr, bootstrap_addr, expected_uis) +function M.rebind_after_restart(canonical_addr, expected_uis) M.restart_canonical_addr = canonical_addr + local bootstrap_addr = vim.v.servername -- Temporary autogenerated address. local poll_ms = 50 local max_wait_ms = 30000 local timer = assert(vim.uv.new_timer()) |
