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

Reload schemas that have changed on disk #10

Open
jumpifnotzero opened this issue Apr 12, 2021 · 2 comments
Open

Reload schemas that have changed on disk #10

jumpifnotzero opened this issue Apr 12, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@jumpifnotzero
Copy link

Hi,

I found your plugin when looking for a RelaxNG validator. It appears to work great (thank you!), however I've noticed that it caches schemas/grammars indefinitely. This clearly works for well-defined schemas, however does not work when concurrently developing a RNG schema, forcing me to restart vscode to revalidate the XML.

The RNG schemas are in the same project and on disk. A solution that requires no further user action if preferred, e.g. adding the file's last-modified date to the cache preferred, but perhaps falling back to user-friven shortcut to flush the grammar cache could address this in a pinch.

Thanks!

@raffazizzi
Copy link
Owner

Thanks for your interest! Would you consider contributing a patch for this? I plan on making further improvements to this plugin in the near future (ie before June-ish because of a project that will make extensive use of the plugin).

@raffazizzi raffazizzi self-assigned this Apr 13, 2021
@raffazizzi raffazizzi added enhancement New feature or request help wanted Extra attention is needed labels Apr 13, 2021
@angelozerr
Copy link

@jumpifnotzero if you are interested, you could try vscode-xml (which can work without Java) because now we support RelaxNG https://github.com/redhat-developer/vscode-xml/blob/main/docs/Features/RelaxNGFeatures.md and it takes care of file modification like you need, see the following demo:

RelaxNGSupport

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants