microsoft / microsoft/TypeScript-Sublime-Plugin

Sublime Snippets not working in Sublime3 build 3211

Open
#738 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.7k
Forks
236
Avg merge
21d 13h
Merged PRs (30d)
1

Description

The following snippet works perfectly fine for the tabTrigger cl in .js files, but not for .ts or .tsx files:

<snippet>
  <content><![CDATA[
console.log('## ${TM_FILENAME/(.+)\..+/$1/} -> ${1:anything}\n', ${2:${1:anything}});
]]></content>
<tabTrigger>cl</tabTrigger>
<scope>source.js, source.ts, source.tsx</scope>
</snippet>

TypeScript-Sublime package at version v3.7.3
Sublime at build 3211

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the supplied snippet with TypeScript-Sublime v3.7.3 in Sublime build 3211, comparing the cl tab trigger in .js, .ts, and .tsx files. Start by checking how the snippet scopes are recognized, and consider the issue done when the trigger behaves consistently across the listed file types.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.