-
Notifications
You must be signed in to change notification settings - Fork 25
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
making the diagnostics computation async #116 #169
Conversation
Signed-off-by: Lars Heinemann <lhein.smx@gmail.com>
Signed-off-by: Lars Heinemann <lhein.smx@gmail.com>
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.
- with big files, validation can take several seconds. and several modifications and call to validation can be called in parallel. So validation markers can be going on and off. It would be nice to cancel previously running validation for the same file. (in another PR maybe)
- I created a PR to use awaitility instead of a while loop with timeout, let me know what you think about it Use Awaitility to check Diagnostic instead of active wait with while lhein/camel-language-server#2
apart from that it is nice to have not block the Save for diagnostic computation!
loop (camel-tooling#116) Signed-off-by: Aurélien Pupier <apupier@redhat.com>
@lhein any reasons preventing the merge of this PR? |
yeah, I have still not tested with big to huge camel files. |
tested now with a ~1250 lines camel context file and diagnostics takes a little more than a second. So I guess we are safe to also enable it for each text edit and not only on save time. @apupier |
I think it can trigger too many computations in some cases. Anyway, we can try and still revert if user complains. |
created #173 |
Signed-off-by: Lars Heinemann lhein.smx@gmail.com