You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When sending the textDocument/didChange with the full document text (without range and rangeLength properties), the content gets properly updated in Lemminx. Calling something like textDocument/formatting afterwards correctly returns the proper changes.
However, if I try to use incremental sync, adding the range (and optionally the rangeLength) properties and only set the text that changed, it gets completely ignored. Calling something like textDocument/formatting assumes the very first version of the document and not the changes that were applied afterwards.
Is there something obvious I'm missing that needs to be done for incremental changes to be supported in Lemminx?
For reference, here's an example request for an incremental change:
When sending the
textDocument/didChange
with the full document text (withoutrange
andrangeLength
properties), the content gets properly updated in Lemminx. Calling something liketextDocument/formatting
afterwards correctly returns the proper changes.However, if I try to use incremental sync, adding the
range
(and optionally therangeLength
) properties and only set the text that changed, it gets completely ignored. Calling something liketextDocument/formatting
assumes the very first version of the document and not the changes that were applied afterwards.Is there something obvious I'm missing that needs to be done for incremental changes to be supported in Lemminx?
For reference, here's an example request for an incremental change:
This is the lsp lifecycle I have:
initialize
"textDocumentSync":2
)initialized
textDocument/didOpen
textDocument/publishDiagnostics
textDocument/didChange
The text was updated successfully, but these errors were encountered: