-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Does not work properly for jsx/tsx react components #74
Comments
The built-in vscode outline also produces these symbols, which means they're getting returned by These aren't really complete solutions as they would hide all properties, including ones in object declarations. Excluding properties just in JSX/TSX is tricky - I don't know if the existing vscode API can provide everything necessary, or if a custom Document Symbol Provider would have to be built. |
Describe the bug
When opening a .tsx file containing react (native) components Outline Map does not display correctly. It lists every attribute of every jsx prop as a top level property of the function returning the component.
To Reproduce
Open a .tsx file with content such as:
Expected behavior
Outline map shows "Test" and "foo".
Actual Behavior
Outline map shows "Test", "foo", "marginLeft", "marginRight", "current"
Screenshots
The text was updated successfully, but these errors were encountered: