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

Document cache #1611

Open
kal-el11 opened this issue Dec 13, 2023 · 2 comments
Open

Document cache #1611

kal-el11 opened this issue Dec 13, 2023 · 2 comments

Comments

@kal-el11
Copy link

Does the xml language server hold document model of all the xml files in a workspace/project (including those which has not been opened in the editor)?

@angelozerr
Copy link
Contributor

No, today only opened document are cached as DOMDocument. The other cache used is for XSD, DTD, RelaxNG (Xerces gramar) when XML reference a grammar the grammar is cached to avoid parse it when XML isvalidated against XS, DTD.

I think it should be nice to manage closed document to scan all XML files from a workspace/project and report all errors of all XML files even if files are closed, but it requires some work.

Why do you need some information about document cache?

@kal-el11
Copy link
Author

I have a requirement to analyze and build the data model of all the xml files in my project and keep my data model updated when the xml files encounters a change.

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