mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Only create grammar load promise once
This commit is contained in:
@@ -82,7 +82,7 @@ class Package
|
||||
@scopedProperties = []
|
||||
|
||||
activate: ->
|
||||
@grammarsPromise = @loadGrammars()
|
||||
@grammarsPromise ?= @loadGrammars()
|
||||
|
||||
unless @activationDeferred?
|
||||
@activationDeferred = Q.defer()
|
||||
|
||||
Reference in New Issue
Block a user