       type      : type
       views     : [ null, newIDEView ]
 
+    @ideViews.push newIDEView
+
     splitView.once 'viewAppended', ->
       splitView.panels.first.attach ideView
       splitView.panels[0] = ideView.parent


    appView   = @getView()
    workspace = @workspace = new Workspace { layoutOptions }

    workspace.once 'ready', =>
      panel = workspace.getView()
      appView.addSubView panel

      panel.once 'viewAppended', =>
        @setActiveTabView panel.getPaneByName('editorPane').tabView
        appView.emit 'KeyViewIsSet'

  setActiveTabView: (tabView) ->

      panelIndexInParent = parentSplitView.panels.indexOf parent

    splitView.once 'SplitIsBeingMerged', (views) =>
      for view in views
        index = @ideViews.indexOf view
        @ideViews.splice index, 1

      @handleSplitMerge views, parent, parentSplitView, panelIndexInParent

    splitView.merge()
