 
       { machineLabel, workspaceSlug, username } = data.params
 
-      loadWorkspace machineLabel, workspaceSlug, username
+      loadWorkspace machineLabel, workspaceSlug, username
    mainView.activitySidebar.selectWorkspace data


  getMachineByLabel = (label) ->
    machine = m  for m in KD.userMachines when (m.label is label) or (m.slug is label)
    return machine or null


  loadIDE = (data) ->

do ->

  loadWorkspace = (machineLabel, workspaceSlug, username = KD.nick()) ->
    workspace = ws  for ws in KD.userWorkspaces when ws.slug is workspaceSlug
    machine   = getMachine machineLabel, username

    if workspace
      loadIDE { machine, workspace, username }
