Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Use correct file extension for .tsx files being processed by LanguageService #597

Closed
jkillian opened this issue Aug 21, 2015 · 0 comments
Closed

Comments

@jkillian
Copy link
Contributor

In noUnusedVariableRule.ts and noUseBeforeDeclareRule.ts, a LanguageServiceHost object is created and passed a hard-coded file name, file.ts. However, if the file we're working with is actually a .tsx file, it will be processed incorrectly by the language service. We need to detect what kind of file is being processed and use a correct extension.

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

No branches or pull requests

2 participants