Writing the whole buffer to stdout
TL;DR: How to i make sure an entire buffer is written to stdout before continuing?
Hello! I'm naively implementing the language server protocol in Deno, based on some youtube tutorials 🤣
I've noticed quite some jank, errors, and dead handlers in my clients, for example, this complaint from neovim:
Investigating further, I believe the problem is here:

2 Replies
Inspecting the above error message, it seems clear that data is being lost here. A correct response should look like:
Stack Overflow
Completion items not appearing with LSP in neovim
I'm writing a language server in typescript. The idea of the language server is to provide snippets, go-to-def, and hover in CSS files for design tokens (aka css variables)
Here's the handler for