yegappan / lsp

Language Server Protocol (LSP) plugin for Vim9
MIT License
461 stars 54 forks source link

fix: send buffer text on textDocument/didSave #405

Closed mhanberg closed 11 months ago

mhanberg commented 11 months ago

This sends the full buffer text on the textDocument/didSave notification if the server's sync options specify it.

I'm not exactly sure how to unit test this, as I am a Neovim user, but I am attempting to get this LSP client working with my new LSP for Elixir, Next LS.

It uses the text property on this notification.

mhanberg commented 11 months ago

I tested this locally, seems to work.

mhanberg commented 11 months ago

@Shane-XB-Qian pushed up changes for your comments, let me know what you think