Defer the window close by one tick so CM-Vim can finish unwinding its * ex-command stack before the renderer is torn down. Closing synchronously * from inside the ex callback means any follow-up IPC (history writes, * panel cleanup) races against the already-destroyed WebContents and * surfa
()
| 509 | * panel cleanup) races against the already-destroyed WebContents and |
| 510 | * surfaces as a "TypeError: Object has been destroyed" in main. */ |
| 511 | function deferredClose(): void { |
| 512 | setTimeout(() => floatingHandlers.close?.(), 0) |
| 513 | } |
| 514 | |
| 515 | function registerFloatingVimCommands(): void { |
| 516 | if (floatingVimRegistered) return |
no test coverage detected