mirror of
https://github.com/atom/atom.git
synced 2026-02-06 20:55:33 -05:00
Only serialize edit sessions with a path
This commit is contained in:
@@ -164,7 +164,8 @@ class FuzzyFinderView extends SelectList
|
||||
getOpenedPaths: ->
|
||||
paths = {}
|
||||
for editSession in rootView.project.getEditSessions()
|
||||
paths[editSession.getPath()] = editSession.lastOpened
|
||||
path = editSession.getPath()
|
||||
paths[path] = editSession.lastOpened if path?
|
||||
paths
|
||||
|
||||
detach: ->
|
||||
|
||||
@@ -151,6 +151,7 @@ describe 'FuzzyFinder', ->
|
||||
rootView.trigger 'fuzzy-finder:toggle-buffer-finder'
|
||||
rootView.open 'sample.js'
|
||||
rootView.trigger 'fuzzy-finder:toggle-buffer-finder'
|
||||
rootView.open()
|
||||
|
||||
states = rootView.serialize().packageStates
|
||||
states = _.map states['fuzzy-finder'], (path, time) -> [ path, time ]
|
||||
|
||||
Reference in New Issue
Block a user