rogalmic / vscode-xml-complete

XML editing helper (using XSD schemaLocation)
MIT License
28 stars 16 forks source link

Xsd cache load #36

Closed devel0 closed 3 years ago

devel0 commented 3 years ago

allow to cache xsd already loaded.

2021-02-10_23-23

image

rogalmic commented 3 years ago

Looks very good, but can you make it optional, based on new config parameter? I would rather have it off by default, since there are use cases where reload is desired.

devel0 commented 3 years ago

did it, using follow settings.json

"xmlComplete.xsdCachePattern": "https://raw.githubusercontent.com/rogalmic/vscode-xml-complete/master",

only regex matching xsd uri will enabled to cache. there could a per schemeMapping option but should enough for the purpose.

xsdCachePattern support regex so that for example the follow will include either github, w3.org or microsoft.com content

"xmlComplete.xsdCachePattern": "githubusercontent\\.com|w3\\.org|microsoft\\.com",

image