mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
This happened because LSP hooks on kill-buffer-hook (and possibly others) caused our temporary formatting buffer to talk to LSP as if it were the original buffer. When the temp buffer was cleaned up, LSP assumed the original buffer had been closed. No more! In fact, to avoid similar issues, let's avoid any complex functionality in hooks in this temp buffer.