mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04: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