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:
Does this issue occur when all extensions are disabled?: Yes

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:
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.
I have the same issue when working with a plain react app. I am using Ubuntu 18.10 .
Confirming the same! Tried disabling/uninstalling all extensions still this issue is happening. For now i have rolled back to 1.29.1
Actually this, may be a VS Code api usage issue. We changed to use references for highlighting since the occurrences api is marked deprecated
@DanielRosenwasser Opinions on the what we should do here?
I don't think that there's a practical difference; getOccurrencesAtPosition just filters out entries that didn't come from the file being asked about. For all intents and purposes, it's the same as getDocumentHighlights with a different output format. It's only a legacy API because old versions of Visual Studio were throwing exceptions for spans outside the current file.
Same problem here...
@mjbvz it seems like you should be using documentHighlights rather than references here; this particular issue is explicitly handled already. Is there a particular reason you're inclined to use references instead?
Oh jeez, yes. Ben is right. Otherwise you're missing out on some handy specific functionality that we did for occurrences/documentHighlights.


Thanks @DanielRosenwasser. Didn't realize this TS Server API existed. I'll update VS Code to use it
@mjbvz @DanielRosenwasser I am still getting this issue on Ubuntu 18.10 , vs-code version 1.30.2. Is the fix scheduled to be in a later update ?
The same issue is on Windows 10, (VS code 1.30.2)
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
It's been 13 days since the fix - just use the insiders releases in the meantime.
@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 馃槩
This is fixed in the latest updated.
Most helpful comment
@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 馃槩