mirror of
https://github.com/atom/atom.git
synced 2026-02-16 17:45:24 -05:00
Memoize built packages
Packages that successfully built are now stored internally so they can be quickly accessed on future calls instead of returning an array of newly built packages on each call.
This commit is contained in:
@@ -250,6 +250,7 @@ describe "Snippets extension", ->
|
||||
|
||||
describe "snippet loading", ->
|
||||
beforeEach ->
|
||||
atom.packages = null
|
||||
jasmine.unspy(LoadSnippetsTask.prototype, 'start')
|
||||
spyOn(LoadSnippetsTask.prototype, 'loadAtomSnippets').andCallFake -> @snippetsLoaded({})
|
||||
spyOn(LoadSnippetsTask.prototype, 'loadTextMateSnippets').andCallFake -> @snippetsLoaded({})
|
||||
|
||||
Reference in New Issue
Block a user