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

Hook for non blocking slow validators #62

Open
andreasjakobik opened this issue Aug 8, 2017 · 1 comment
Open

Hook for non blocking slow validators #62

andreasjakobik opened this issue Aug 8, 2017 · 1 comment

Comments

@andreasjakobik
Copy link

andreasjakobik commented Aug 8, 2017

In addition to a way to contribute live validator that gives quick response, there must also be support for validators that take long time to complete (tens of seconds in worst case). These slow responders must not block any other live validation that is going on. They can take their time, and when done should update the editor just like any other validation does. Examples of these long lasting validations include:

  • Check for uniqueness of namespace among registered Yang files
  • Check for backward compatibility, which requires access to remote repository
  • Compilation of yang files using target configuration component

These slow validators should perhaps only be triggered when file has been saved, or by an explicit validate action is called by user?

@svenefftinge
Copy link
Member

Maybe we can combine this with #61 by providing a generic action contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants