typescript-vscode-plugins icon indicating copy to clipboard operation
typescript-vscode-plugins copied to clipboard

[Feature] jsx outline filter nodes

Open tjx666 opened this issue 1 year ago • 1 comments

Why

With UI lib like mui, the component tree is very deep. It would be very useful if the outline can filter out component nodes for clean structure.

tjx666 avatar Apr 11 '24 15:04 tjx666

do you want a setting to remove specific outline items by regexp? eg /^[A-Z]/

anyway I really do suggest splitting the component tree into smaller components (we have our code action Extract to JSX btw for this) or at least extracting specific JSX tree parts into variables in the same component.

zardoy avatar Apr 12 '24 00:04 zardoy