vscode: JSX tag highlighting broken
- VSCode Version: 1.30
- OS Version: Mac OS 10.14.2
Previously when selecting an opening tag in any JSX only the corresponding closing tag would be highlighted. As of version 1.30 (November) ALL corresponding JSX tags are highlighted across the file. I.e If you select any opening View tag for example, all View tags across the file are highlighted. It’s almost like the tags are being treated like variables.
Steps to Reproduce:
- Open any JS file with JSX, in my case I was working with React Native JSX
- Click on any opening tag
Does this issue occur when all extensions are disabled?: Yes

About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (5 by maintainers)
@DanielRosenwasser As for a software that needs to be used at daily work, pushing user into insiders channel is not a good idea. I think you should never tell people to switch to a insiders release for getting a fix (because they may get several new bugs at the same time), instead you should release a patch to the stable channel. After all it has been one and a half month since the bug was released 😢
Still having this issue on Mac, VS Code 1.30.2. Just reverted to 1.29 and tag matching works fine for me. @Muljayan @vrubliuk
This is fixed in the latest updated.
It’s been 13 days since the fix - just use the insiders releases in the meantime.
@mjbvz it seems like you should be using
documentHighlights
rather thanreferences
here; this particular issue is explicitly handled already. Is there a particular reason you’re inclined to usereferences
instead?Same problem here…
I am experiencing the same issue. When highlighting any tags in the jsx file vscode seems to select all corresponding tags that are the same.
Small workaround for now until this is fixed I am using Highlight Matching Tag it supports jsx.