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:

  1. Open any JS file with JSX, in my case I was working with React Native JSX
  2. Click on any opening tag

Does this issue occur when all extensions are disabled?: Yes

screenshot 2018-12-13 at 09 29 49

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (5 by maintainers)

Most upvoted comments

@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 than references here; this particular issue is explicitly handled already. Is there a particular reason you’re inclined to use references instead?

Same problem here…

  • VSCodeInsiders Version: 1.31.0-insider (user setup)
  • Windows 10 Pro: 10.0.17763 Build 17763

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. screenshot_1

Small workaround for now until this is fixed I am using Highlight Matching Tag it supports jsx.