Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #405 from mhanberg/didsavetext
fix: send buffer text on textDocument/didSave
- Loading branch information
882f350
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When using LspFormat on save, this change results in:
Error detected while processing BufWritePost Autocommands for "<buffer=11>"..function 32_LspSavedFile[10]..53_DidSaveFile:
line 11:
E896: Argument of get() must be a List, Dictionary or Blob
Error detected while compiling function 53_Output_cb[5]..lsp#handlers#ProcessMessages[32]..lsp#handlers#ProcessNotif[39]..54_ProcessDiagNotif[2]..lsp#diag#DiagNoti
fication:
line 17:
E1028: Compiling :def function failed
Error detected while processing function 53_Output_cb[5]..lsp#handlers#ProcessMessages[32]..lsp#handlers#ProcessNotif[39]..54_ProcessDiagNotif:
line 2:
E1091: Function is not compiled: lsp#diag#DiagNotification
E1091: Function is not compiled: lsp#diag#DiagNotification
882f350
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have committed a fix for this. Can you try out the latest version of the plugin?
882f350
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as intended, thank you!