You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Feature can only be used in a .ts file." when switching the language mode to TypeScript in a .js file #9199
changed the title [-]"can only be used in a .ts file."[/-][+]"Feature can only be used in a .ts file." when switching the language mode to TypeScript in a .js file[/+]on Jul 13, 2016
Activity
[-]"can only be used in a .ts file."[/-][+]"Feature can only be used in a .ts file." when switching the language mode to TypeScript in a .js file[/+]dbaeumer commentedon Jul 13, 2016
This is a problem with the TSServer that infers the language mode from the extension. There are discussion to make the customizable.
Moving to TS team.
dbaeumer commentedon Jul 13, 2016
This issue was moved to microsoft/TypeScript#9670