atom / snippets

Atom snippets package
MIT License
205 stars 100 forks source link

Set prefix to 'constructor' breaks snippets #191

Closed unclejustin closed 6 years ago

unclejustin commented 8 years ago

The following will break all of your snippets for that source:

'.source.ts':
  'console.log':
    'prefix': 'log'
    'body': 'console.log(${1});'
  'class constructor':
    'prefix': 'constructor'
    'body': 'constructor() {${1}}'

But changing to the following will fix it:

'.source.ts':
  'console.log':
    'prefix': 'log'
    'body': 'console.log(${1});'
  'class constructor':
    'prefix': 'con'
    'body': 'constructor() {${1}}'
amytruong commented 8 years ago

Hi! I'm having a little trouble reproducing this. Your first snippet works correctly for me. Can you tell me what OS and version of Atom you're on?

unclejustin commented 8 years ago

OSX 10.11.3 Atom 1.4.3

I don't have my laptop with me at the moment. I'll try it again tomorrow and pull a list of plugins too if that helps.

50Wliu commented 6 years ago

Cannot reproduce; no response.