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

Request: use typescript language server to trace imports #45

Open
james-yeoman opened this issue Oct 27, 2023 · 1 comment
Open

Request: use typescript language server to trace imports #45

james-yeoman opened this issue Oct 27, 2023 · 1 comment

Comments

@james-yeoman
Copy link

Rather than trying to process imports by hand (which is causing problems with Typescript Path Aliases and baseUrl), why not resolve imports with the help of the Typescript Language Server?

This would allow you to reuse information that the Language Server has already covered edge cases for.

It would also be more maintainable, since your extension would only need to worry about traversing the import tree to find react components and their properties

@nicofishman
Copy link

+1 here, not working with path aliases

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