Skip to content

shebang in js / jsx / tsx is classified as ".ts" #813

@asottile

Description

@asottile

I unfortunately don't have a direct reproduction involving actual code so I've omitted the issue template, this was noticed while auditing the source of the textmate grammars

<dict>
<key>name</key>
<string>comment.line.shebang.ts</string>
<key>match</key>
<string>\A(#!).*(?=$)</string>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.ts</string>
</dict>
</dict>
</dict>

I believe these should be .tsx for the "TypeScriptReact" -- a fix to that will also fix the js / jsx grammars in vs code which do a replace on /\.tsx/ to the destination scope

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions