mirror of
https://github.com/atom/atom.git
synced 2026-02-15 09:05:58 -05:00
Remove atom package grammars on deactivate
This commit is contained in:
committed by
Nathan Sobo
parent
c1954d869a
commit
772787121c
@@ -97,6 +97,7 @@ class AtomPackage extends Package
|
||||
console.error "Error serializing package '#{@name}'", e.stack
|
||||
|
||||
deactivate: ->
|
||||
syntax.removeGrammar(grammar) for grammar in @grammars
|
||||
@mainModule?.deactivate?()
|
||||
|
||||
requireMainModule: ->
|
||||
|
||||
Reference in New Issue
Block a user