Allow items closed in docks to be reopened

This commit is contained in:
Nathan Sobo
2017-04-06 15:57:26 -06:00
committed by Max Brunsfeld
parent 68f5448fbe
commit 6f6ec70094
3 changed files with 10 additions and 6 deletions

View File

@@ -76,7 +76,8 @@ module.exports = class Workspace extends Model {
this.center = new WorkspaceCenter({
paneContainer: this.paneContainer,
didActivate: this.didActivatePaneContainer,
didChangeActivePaneItem: this.didChangeActivePaneItemOnPaneContainer
didChangeActivePaneItem: this.didChangeActivePaneItemOnPaneContainer,
didDestroyPaneItem: this.didDestroyPaneItem
})
this.docks = {
left: this.createDock('left'),
@@ -121,7 +122,8 @@ module.exports = class Workspace extends Model {
didHide: this.didHideDock,
didActivate: this.didActivatePaneContainer,
didChangeActivePane: this.didChangeActivePaneOnPaneContainer,
didChangeActivePaneItem: this.didChangeActivePaneItemOnPaneContainer
didChangeActivePaneItem: this.didChangeActivePaneItemOnPaneContainer,
didDestroyPaneItem: this.didDestroyPaneItem
})
dock.onDidDestroyPaneItem(this.didDestroyPaneItem)
return dock
@@ -143,12 +145,12 @@ module.exports = class Workspace extends Model {
deserializerManager: this.deserializerManager,
viewRegistry: this.viewRegistry
})
this.paneContainer.onDidDestroyPaneItem(this.didDestroyPaneItem)
this.center = new WorkspaceCenter({
paneContainer: this.paneContainer,
didActivate: this.didActivatePaneContainer,
didChangeActivePaneItem: this.didChangeActivePaneItemOnPaneContainer
didChangeActivePaneItem: this.didChangeActivePaneItemOnPaneContainer,
didDestroyPaneItem: this.didDestroyPaneItem
})
this.docks = {
left: this.createDock('left'),