Remove scoped-properties when deactivating a TextMate package

This commit is contained in:
Nathan Sobo
2013-03-26 17:30:42 -06:00
parent 6a5ca3805e
commit d3fa24be57
2 changed files with 7 additions and 2 deletions

View File

@@ -33,11 +33,11 @@ class TextMatePackage extends Package
activate: ->
syntax.addGrammar(grammar) for grammar in @grammars
for { selector, properties } in @scopedProperties
syntax.addProperties(selector, properties)
syntax.addProperties(@path, selector, properties)
deactivate: ->
syntax.removeGrammar(grammar) for grammar in @grammars
# we should also unregister properties, snippets, etc
syntax.removeProperties(@path)
legalGrammarExtensions: ['plist', 'tmLanguage', 'tmlanguage']