🐛 BUG: SVG elements show wrong hover info #223
Labels
- P2: nice to have
Not breaking anything but nice to have (priority)
ecosystem: upstream
Issue is caused by a bug / missing feature upstream
Describe the Bug
When hovering an SVG element (or any of its containing elements specific to SVGs such as
<rect>
) instead of getting a nice hover info explaining the tag with a link to the MDN like we have for HTML and CSS, it shows the ugly TSX hover infoThe reason for that is that VS Code's language services does not include any information for SVG elements, you can test this by going into a normal .html file and hovering SVG elements, where you'll get nothing.
There's an issue about it on the VS Code repo here microsoft/vscode#66053
Possible solution
Create our own custom data for SVG elements, that'd be a lot of work but we'd be able to probably contribute it to VS Code, which would be fun
Steps to Reproduce
<svg></svg>
svg
The text was updated successfully, but these errors were encountered: