-
Notifications
You must be signed in to change notification settings - Fork 15
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
Delay revalidation after edit and improve cancel checking #659
Delay revalidation after edit and improve cancel checking #659
Conversation
...edhat.qute.ls/src/main/java/com/redhat/qute/ls/template/TemplateFileTextDocumentService.java
Show resolved
Hide resolved
...edhat.qute.ls/src/main/java/com/redhat/qute/ls/template/TemplateFileTextDocumentService.java
Outdated
Show resolved
Hide resolved
...edhat.qute.ls/src/main/java/com/redhat/qute/ls/template/TemplateFileTextDocumentService.java
Outdated
Show resolved
Hide resolved
...edhat.qute.ls/src/main/java/com/redhat/qute/ls/template/TemplateFileTextDocumentService.java
Outdated
Show resolved
Hide resolved
@datho7561 just for your information, the delay validation is very helpfull when you use linked editing range https://github.com/redhat-developer/vscode-quarkus/blob/master/docs/qute/TemplateSupport.md#linked-editing In this case it sends several didChange. In master branch you will have one publish diagnostic per changes (if your linked editing range update 3 object parts,y ou will have 3 validation process). With your current PR you should see just one validation process. |
9cf4377
to
0263011
Compare
@datho7561 please resolve conflicts. |
0263011
to
17b1a88
Compare
qute.ls/com.redhat.qute.ls/src/main/java/com/redhat/qute/ls/commons/ModelTextDocuments.java
Outdated
Show resolved
Hide resolved
Delays revalidation of edited Qute templates to prevent excessive validation requests. Improves cancel checking in completion. Signed-off-by: David Thompson <davthomp@redhat.com>
17b1a88
to
95e2b55
Compare
Many thanks @datho7561 ! |
Delays revalidation of edited Qute templates to prevent excessive validation requests. Improves cancel checking in completion.
Signed-off-by: David Thompson davthomp@redhat.com