Skip to content

Conversation

@parmort
Copy link

@parmort parmort commented Aug 9, 2020

I realized that when in a typescript file that includes a shebang line, the filetype is incorrectly detected as javascript. This check stops this incorrect detection.

My first thought was to add a configuration variable (hence the branch name), but I realized how limiting that is.

@rschristian
Copy link

Just ran into this myself tonight, was scratching my head for a while over potential syntax issues before the shebang dawned on me as potentially being problematic (then took me a while longer to figure out what was mistakenly detecting it).

Would be nice to get this in.

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

Successfully merging this pull request may close these issues.

2 participants