Skip to content

Snippets stop working in TypeScript files #369

@bjnsn

Description

@bjnsn

Snippets seem to be clobbered by the most recent version of the plugin on PackageControl + NPM typescript install. It's possible I'm missing something - so please comment if it works for you. When I provide SublimeText (v3) a snippet (without a source scope) it works across other languages (JS, python, etc). Simple test case:

<snippet>
    <content><![CDATA[
class ${1:name} {
    constructor() {}
}

]]></content>
    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
    <tabTrigger>tsclass</tabTrigger>
    <!-- Optional: Set a scope to limit where the snippet will trigger -->
    <!--<scope>source.ts</scope>-->
</snippet>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions