rogalmic / vscode-xml-complete

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

add support for XML catalogs (schema matching: matching, rewriting, ...) #29

Open GitMensch opened 3 years ago

GitMensch commented 3 years ago

The catalog entries (replace one entry by another) via xmlComplete.schemaMapping works fine and is quite simiar to eclipse's catalog entries:

 {
  "xmlns": "https://github.com/avaloniaui",
  "xsdUri": "https://raw.githubusercontent.com/rogalmic/vscode-xml-complete/master/test/Avalonia/AvaloniaXamlSchema.xsd"
 }

eclipse XML, catalog entry eclipse XML, rewrite entry

It would be very ood if we could have rewrite options, which is especially usefiul for local files. This feature is available with the standardized xml catalog. The eclipse IDE seems to just wrap this one in a nice editor.

For the setting, we can just add a new one or even better use the xml.catalogs array, see https://github.com/redhat-developer/vscode-xml/wiki/XMLValidation#xml-catalog-with-xsd.