gen_lsp icon indicating copy to clipboard operation
gen_lsp copied to clipboard

feat: add `handle_continue/2` to `GenLSP` behaviour

Open Moosieus opened this issue 1 month ago • 0 comments

Why:

  • Follow this conversation.
  • Long story short, writing the initialization response needs to block everything thereafter to be compliant with LSP spec.
  • Mostly impacts VSCode AFAIK.

Changes:

  • Mirrors GenServer.handle_continue/2 as close as possible.
  • If applicable, waits for the principal callback's response to be written (not responded to!) to the buffer before invoking handle_continue/2.

Test branch w/ Expert available at Moosieus/expert/tree/moo/work-done-progress-handle-continue.

Moosieus avatar Dec 21 '25 00:12 Moosieus