Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(lsp): Request document sync on open/close
Without sending `open_close: true` to the client, it may not issue an `textDocument/didOpen` event with document text to allow the diagnostics and text cache to be initialized after opening, but prior to editing, the document. Format requests also emit "Format request arrived before text synchronized" in this state. The didClose event probably also doesn't arrive to see cache entries removed. Observed in neovim 0.8.3 using internal client, while vim with prabirshrestha/vim-lsp sends the event regardless (but does not currently issue didClose).
- Loading branch information