Closed as not planned
Closed as not planned
Description
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.101.2
- OS Version: Windows_NT x64 10
Steps to Reproduce
- Lets have test code:
import React from 'react';
import {View} from 'react-native';
import {ComponentWithoutChildren} from './ComponentWithoutChildren';
export const Test = () => {
return (
<>
<View>
<ComponentWithoutChildren />
</View>
<View>
<ComponentWithoutChildren />
</View>
{/* its only for testing bug purposes, RN doesnt support div tags for mobile */}
<div>
hello
</div>
<div>
hello
</div>
</>
);
};
- If we put cursor at component
ComponentWithoutChildren
which doesnt havechildren
so it is "self closed tag" and vs code will highlight all its occurrences:
- If we put cursor at component
View
which haschildren
so it is NOT "self closing tag" and vs code will highlight only current pair but forgot to highlight all other its occurrences:
the same is for div
tags that present in test example code.
Problem
So different tags are highlighted differently and this causes confusion and even wrong quick understanding of code.