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

TSX? #2

Closed
mikecann opened this issue Sep 27, 2016 · 7 comments
Closed

TSX? #2

mikecann opened this issue Sep 27, 2016 · 7 comments

Comments

@mikecann
Copy link

Hey, love the plugin!

Just wondering, is there a specific reason why .tsx files arent supported?

@pmneo
Copy link
Owner

pmneo commented Sep 27, 2016

You can adjust the scanned files via tsimporter.filesToScan setting
tsimporter.filesToScan: [ "**/*.ts", "**/*.tsx" ]

@mikecann
Copy link
Author

@pmneo is that in the .vscode/settings.json folder?

@pmneo
Copy link
Owner

pmneo commented Sep 27, 2016

Yes, but you have to reopen the workspace after editing that file.

@mikecann
Copy link
Author

Hmm doesnt seem to work. Is it able to pick up React components listed in other TSX files?

@pmneo
Copy link
Owner

pmneo commented Sep 28, 2016

Can you please provide a small sample Project?
Am 28.09.2016 00:58 schrieb Mike Cann notifications@github.com:Hmm doesnt seem to work. Is it able to pick up React components listed in other TSX files?

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.

@mikecann
Copy link
Author

tsx-example.zip

Run npm install, note in index.tsx, im unable to find ComponentA.

@pmneo
Copy link
Owner

pmneo commented Sep 28, 2016

Should work now with v1.2.2!

@pmneo pmneo closed this as completed Sep 28, 2016
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