redhat-developer / redhat-developer/vscode-xml
Add a property in xml.fileAssociations to match root tag
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 328
- Forks
- 101
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 7
Description
It would be a really nice to have if the file association property can map an XSD or DTD file with the root of the xml file, instead of the file name pattern. For example:
"xml.fileAssociations":
[{"systemId": "http://w3.atsec/cctool/dtd/books.dtd",
"root": "books"}]
That way, IMHO the association would be more sensible, simple and straightforward when handling different structures and xml files.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the implementation and configuration handling for xml.fileAssociations, then inspect how filename patterns and systemId values are currently matched. Use the provided books.dtd and books root-tag example to define the expected behavior and verify that root-based associations work alongside existing matches.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100