-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Experimental Incremental support #133
Comments
Yes, that'd be interesting, but I think |
JSON didChange request size when document changed. This incremental support is only available with experimental.incrementalSupport.enabled (see #133)
Thanks for your suggestion. I have done like this.
Yes sure, I'm working on this issue too and range formatting. I close this issue, and please open a new issue if you find bugs with incremental support (by default, it's agaun Full and not incremental synch). |
So I tried to test it in vscode but the way you implemented it, it's not a preference, but a client capability. In vscode we don't have an easy access to tweak available client capabilities and add experimental stuff. I think the experimental property you want needs to be part of the server configuration, i.e sent in the "settings" section of InitializeParams#getInitializationOptions(), so eventually ends up in XMLClientSettings |
Done. |
IMHO I think we should try to activate this incremental support to fix
The basic idea of incremental support is to update the XMLDocument text String content from DidChangeTextDocumentParams (which is filled only with text changed and not with the whole document in the case of activated incremental support ) -> see We need to write a lot of test with call of update method: |
@angelozerr Is my following understanding of incremental support correct?
So all incremental support is doing is reducing the size of the didChangeTextDocument json? |
yes that's pretty much it |
@NikolasKomonen it's exactly that! |
Fixes eclipse-lemminx#133 Removed the incremental setting, it is default and you can't change it Signed-off-by: Nikolas <[email protected]>
Fixes eclipse-lemminx#133 Removed the incremental setting, it is default and you can't change it Signed-off-by: Nikolas <[email protected]>
Fixes eclipse-lemminx#133 Removed the incremental setting, it is default and you can't change it Signed-off-by: Nikolas <[email protected]>
Fixes eclipse-lemminx#133 Removed the incremental setting, it is default and you can't change it Signed-off-by: Nikolas <[email protected]>
Fixes eclipse-lemminx#133 Removed the incremental setting, it is default and you can't change it Signed-off-by: Nikolas <[email protected]>
Fixes eclipse-lemminx#133 Removed the incremental setting, it is default and you can't change it Signed-off-by: Nikolas <[email protected]>
Fixes eclipse-lemminx#133 Removed the incremental setting, it is default and you can't change it Signed-off-by: Nikolas <[email protected]>
Fixes eclipse-lemminx#133 Removed the incremental setting, it is default and you can't change it Signed-off-by: Nikolas <[email protected]>
Fixes eclipse-lemminx#133 Incremental sync is off by default preference to turn on is: "xml.experimental.incrementalSupport.enabled": true|false Signed-off-by: Nikolas <[email protected]>
Fixes eclipse-lemminx#133 Incremental sync is off by default preference to turn on is: "xml.experimental.incrementalSupport.enabled": true|false Signed-off-by: Nikolas <[email protected]>
Fixes #133 Incremental sync is off by default preference to turn on is: "xml.experimental.incrementalSupport.enabled": true|false Signed-off-by: Nikolas <[email protected]>
In large XML file, vscode like Eclipse freezes as soon as you type something. One of problem is because the didChange command send a big JSON content every time.
One idea that I have is to se the Incremental support on the server side, and didChange update the string of stored TextDocument.
I have started to implement this idea, but I think we should have a preferences like "experimentalIncrementalSupport" because I fear that there are some bugs.
@fbricon @NikolasKomonen what do you think about this experimentalIncrementalSupport preferences?
The text was updated successfully, but these errors were encountered: