You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After I open opencode buffer, every time I want to exit I have to wait for quite some time.
I took a peek at the opencode server shutdown function and noticed that the shutdown_promise is only resolved when there is no job, thus the callback in VimLeavePre will wait for entire 2000ms before exiting.
I try to resolve the promise after killing the job in the shutdown function and wait time is slightly reduced, although still noticeable.
After I open opencode buffer, every time I want to exit I have to wait for quite some time.
I took a peek at the opencode server shutdown function and noticed that the shutdown_promise is only resolved when there is no job, thus the callback in VimLeavePre will wait for entire 2000ms before exiting.
I try to resolve the promise after killing the job in the shutdown function and wait time is slightly reduced, although still noticeable.
some demo for comparison of before and after I applied the promise resolve.
Screen.Recording.2026-02-09.at.06.39.18.mov