redhat-developer / redhat-developer/vscode-xml

Add a property in xml.fileAssociations to match root tag

Open
#185 6 comments 6 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.