Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] jsx outline filter nodes #204

Open
tjx666 opened this issue Apr 11, 2024 · 1 comment
Open

[Feature] jsx outline filter nodes #204

tjx666 opened this issue Apr 11, 2024 · 1 comment

Comments

@tjx666
Copy link

tjx666 commented Apr 11, 2024

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.

@zardoy
Copy link
Owner

zardoy commented Apr 12, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants