 
     if ideApp.workspaceData?.rootPath
       return ideApp.workspaceData.rootPath
-
-
-  getCurrentMachine:->
-
-    {appManager, computeController} = KD.singletons
-    machineId = appManager.getFrontApp().mountedMachineUId
-    machine = m for m in computeController.machines when m.uid is machineId
-
-    return machine

        separator         : yes
      'Split Vertically':
        callback          : ->
          KD.getSingleton('appManager').getFrontApp().splitVertically()
      'Split Horizontally':
        callback          : ->
          KD.getSingleton('appManager').getFrontApp().splitHorizontally()

    if @parent instanceof KDSplitViewPanel
      items['Undo Split'] =
        separator         : yes
        callback          : ->
          KD.getSingleton('appManager').getFrontApp().mergeSplitView()
    else
      items['']           = # TODO: `type: 'separator'` also creates label, see: https://cloudup.com/c90pFQS_n6X
        type              : 'separator'


  createTerminal: (machine, path, session) ->

    {appManager} = KD.singletons

    machine ?= appManager.getFrontApp().mountedMachine
    path    ?= @getCurrentWorkspacePath()

    terminalPane = new IDE.TerminalPane { machine, path, session }
