mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Reset Workspace before Project
Otherwise some paths will be leaked.
This commit is contained in:
@@ -261,11 +261,13 @@ class AtomEnvironment extends Model
|
||||
|
||||
@packages.reset()
|
||||
|
||||
@project.reset(@packages)
|
||||
|
||||
@workspace.reset(@packages)
|
||||
@registerDefaultOpeners()
|
||||
|
||||
@project.reset(@packages)
|
||||
|
||||
@workspace.subscribeToEvents()
|
||||
|
||||
@views.clear()
|
||||
@registerDefaultViewProviders()
|
||||
|
||||
|
||||
@@ -49,8 +49,7 @@ class Workspace extends Model
|
||||
bottom: new PanelContainer({location: 'bottom'})
|
||||
modal: new PanelContainer({location: 'modal'})
|
||||
|
||||
@subscribeToActiveItem()
|
||||
@subscribeToFontSize()
|
||||
@subscribeToEvents()
|
||||
|
||||
reset: (@packageManager) ->
|
||||
@emitter.dispose()
|
||||
@@ -74,6 +73,7 @@ class Workspace extends Model
|
||||
@destroyedItemURIs = []
|
||||
@consumeServices(@packageManager)
|
||||
|
||||
subscribeToEvents: ->
|
||||
@subscribeToActiveItem()
|
||||
@subscribeToFontSize()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user