Skip to content

Commit

Permalink
Workspace management (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanp413 authored Jul 14, 2023
1 parent bdbb8fa commit a21b9aa
Show file tree
Hide file tree
Showing 18 changed files with 983 additions and 57 deletions.
148 changes: 145 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,48 @@
},
{
"command": "gitpod.installLocalExtensions",
"title": "Gitpod: Install Local Extensions...",
"title": "Install Local Extensions...",
"category": "Gitpod",
"enablement": "gitpod.inWorkspace == true"
},
{
"command": "gitpod.signIn",
"category": "Gitpod",
"title": "Sign In"
},
{
"command": "gitpod.workspaces.refresh",
"category": "Gitpod",
"title": "Refresh",
"icon": "$(refresh)"
},
{
"command": "gitpod.workspaces.connectInNewWindow",
"category": "Gitpod",
"title": "Open in New Window...",
"icon": "$(empty-window)"
},
{
"command": "gitpod.workspaces.connectInCurrentWindow",
"category": "Gitpod",
"title": "Open...",
"icon": "$(arrow-right)"
},
{
"command": "gitpod.workspaces.openInBrowser",
"category": "Gitpod",
"title": "Open in Browser..."
},
{
"command": "gitpod.workspaces.openContext",
"category": "Gitpod",
"title": "Open Context"
},
{
"command": "gitpod.workspaces.disconnect",
"category": "Gitpod",
"title": "Close Remote Connection",
"icon": "$(debug-disconnect)"
}
],
"menus": {
Expand All @@ -124,8 +159,115 @@
"group": "remote_00_gitpod_navigation@01",
"when": "gitpod.inWorkspace == true"
}
],
"view/title": [
{
"command": "gitpod.workspaces.refresh",
"when": "view == gitpod-workspaces",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "gitpod.workspaces.connectInCurrentWindow",
"when": "viewItem =~ /^gitpod-workspaces.workspace(?:.running)?$/",
"group": "inline@1"
},
{
"command": "gitpod.workspaces.disconnect",
"when": "viewItem =~ /^gitpod-workspaces.workspace.+connected$/",
"group": "inline@3"
},
{
"command": "gitpod.workspaces.connectInCurrentWindow",
"when": "viewItem =~ /^gitpod-workspaces.workspace/",
"group": "navigation@1"
},
{
"command": "gitpod.workspaces.connectInNewWindow",
"when": "viewItem =~ /^gitpod-workspaces.workspace/",
"group": "navigation@2"
},
{
"command": "gitpod.workspaces.openInBrowser",
"when": "viewItem =~ /^gitpod-workspaces.workspace/",
"group": "navigation@4"
},
{
"command": "gitpod.workspaces.openContext",
"when": "viewItem =~ /^gitpod-workspaces.workspace/",
"group": "navigation@5"
}
],
"commandPalette": [
{
"command": "gitpod.workspaces.refresh",
"when": "false"
},
{
"command": "gitpod.workspaces.refresh",
"when": "gitpod.authenticated == true"
},
{
"command": "gitpod.workspaces.connectInNewWindow",
"when": "gitpod.authenticated == true"
},
{
"command": "gitpod.workspaces.connectInCurrentWindow",
"when": "gitpod.authenticated == true"
},
{
"command": "gitpod.workspaces.openInBrowser",
"when": "gitpod.authenticated == true"
},
{
"command": "gitpod.workspaces.openContext",
"when": "false"
},
{
"command": "gitpod.workspaces.disconnect",
"when": "false"
}
]
}
},
"viewsContainers": {
"activitybar": [
{
"id": "gitpod-view",
"title": "Gitpod",
"icon": "resources/explorer.svg"
}
]
},
"views": {
"gitpod-view": [
{
"id": "gitpod-login",
"name": "Login",
"icon": "$(squirrel)",
"when": "gitpod.authenticated != true"
},
{
"id": "gitpod-workspaces",
"name": "Workspaces",
"icon": "$(squirrel)",
"when": "gitpod.authenticated == true"
},
{
"id": "gitpod-workspace",
"name": "Workspace",
"icon": "$(squirrel)",
"when": "false"
}
]
},
"viewsWelcome": [
{
"view": "gitpod-login",
"when": "gitpod.authenticated != true",
"contents": "You have not yet signed in with Gitpod\n[Sign in](command:gitpod.signIn)"
}
]
},
"main": "./out/extension.js",
"segmentKey": "YErmvd89wPsrCuGcVnF2XAl846W9WIGl",
Expand Down Expand Up @@ -201,4 +343,4 @@
"ws": "^8.13.0",
"yazl": "^2.5.1"
}
}
}
3 changes: 3 additions & 0 deletions resources/explorer.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a21b9aa

Please sign in to comment.