redhat-developer / redhat-developer/vscode-xml
Format: prevent text only content to be inlined with closing tag
Open
Nobody has claimed this yet.
formatting
- Dominant language
- TypeScript
- Stars
- 328
- Forks
- 101
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 7
Description
A way to prevent formatting this
<text x="50%"
y="50%"
font-size="60"
text-anchor="middle"
dominant-baseline="middle"
fill="white">
SVG
</text>
To become
<text x="50%"
y="50%"
font-size="60"
text-anchor="middle"
dominant-baseline="middle"
fill="white"> SVG </text>
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
Reproduce the formatting behavior in VS Code using the XML snippet from the issue, then trace the XML formatter entry point that handles text-only elements. Done means multiline text content remains multiline instead of being inlined with the closing tag, with coverage for the shown example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, xml
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100