Skip to content
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

Merged
merged 1 commit into from
Jun 16, 2022

Conversation

datho7561
Copy link
Contributor

Delays revalidation of edited Qute templates to prevent excessive validation requests. Improves cancel checking in completion.

Signed-off-by: David Thompson davthomp@redhat.com

@angelozerr
Copy link
Contributor

@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.

@angelozerr
Copy link
Contributor

@datho7561 please resolve conflicts.

Delays revalidation of edited Qute templates to prevent excessive
validation requests.
Improves cancel checking in completion.

Signed-off-by: David Thompson <davthomp@redhat.com>
@datho7561 datho7561 marked this pull request as ready for review June 16, 2022 17:14
@angelozerr angelozerr merged commit b5a0431 into redhat-developer:master Jun 16, 2022
@angelozerr
Copy link
Contributor

Many thanks @datho7561 !

@angelozerr angelozerr added this to the v0.12.0 milestone Jun 16, 2022
@datho7561 datho7561 deleted the delay-revalidation branch June 16, 2022 17:21
@datho7561 datho7561 linked an issue Jun 28, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve memory and peformance of Qute LS
2 participants