Skip to content

Commit a21b9aa

Browse files
authored
Workspace management (#66)
1 parent bdbb8fa commit a21b9aa

18 files changed

+983
-57
lines changed

package.json

Lines changed: 145 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,48 @@
108108
},
109109
{
110110
"command": "gitpod.installLocalExtensions",
111-
"title": "Gitpod: Install Local Extensions...",
111+
"title": "Install Local Extensions...",
112+
"category": "Gitpod",
112113
"enablement": "gitpod.inWorkspace == true"
113114
},
114115
{
115116
"command": "gitpod.signIn",
116117
"category": "Gitpod",
117118
"title": "Sign In"
119+
},
120+
{
121+
"command": "gitpod.workspaces.refresh",
122+
"category": "Gitpod",
123+
"title": "Refresh",
124+
"icon": "$(refresh)"
125+
},
126+
{
127+
"command": "gitpod.workspaces.connectInNewWindow",
128+
"category": "Gitpod",
129+
"title": "Open in New Window...",
130+
"icon": "$(empty-window)"
131+
},
132+
{
133+
"command": "gitpod.workspaces.connectInCurrentWindow",
134+
"category": "Gitpod",
135+
"title": "Open...",
136+
"icon": "$(arrow-right)"
137+
},
138+
{
139+
"command": "gitpod.workspaces.openInBrowser",
140+
"category": "Gitpod",
141+
"title": "Open in Browser..."
142+
},
143+
{
144+
"command": "gitpod.workspaces.openContext",
145+
"category": "Gitpod",
146+
"title": "Open Context"
147+
},
148+
{
149+
"command": "gitpod.workspaces.disconnect",
150+
"category": "Gitpod",
151+
"title": "Close Remote Connection",
152+
"icon": "$(debug-disconnect)"
118153
}
119154
],
120155
"menus": {
@@ -124,8 +159,115 @@
124159
"group": "remote_00_gitpod_navigation@01",
125160
"when": "gitpod.inWorkspace == true"
126161
}
162+
],
163+
"view/title": [
164+
{
165+
"command": "gitpod.workspaces.refresh",
166+
"when": "view == gitpod-workspaces",
167+
"group": "navigation"
168+
}
169+
],
170+
"view/item/context": [
171+
{
172+
"command": "gitpod.workspaces.connectInCurrentWindow",
173+
"when": "viewItem =~ /^gitpod-workspaces.workspace(?:.running)?$/",
174+
"group": "inline@1"
175+
},
176+
{
177+
"command": "gitpod.workspaces.disconnect",
178+
"when": "viewItem =~ /^gitpod-workspaces.workspace.+connected$/",
179+
"group": "inline@3"
180+
},
181+
{
182+
"command": "gitpod.workspaces.connectInCurrentWindow",
183+
"when": "viewItem =~ /^gitpod-workspaces.workspace/",
184+
"group": "navigation@1"
185+
},
186+
{
187+
"command": "gitpod.workspaces.connectInNewWindow",
188+
"when": "viewItem =~ /^gitpod-workspaces.workspace/",
189+
"group": "navigation@2"
190+
},
191+
{
192+
"command": "gitpod.workspaces.openInBrowser",
193+
"when": "viewItem =~ /^gitpod-workspaces.workspace/",
194+
"group": "navigation@4"
195+
},
196+
{
197+
"command": "gitpod.workspaces.openContext",
198+
"when": "viewItem =~ /^gitpod-workspaces.workspace/",
199+
"group": "navigation@5"
200+
}
201+
],
202+
"commandPalette": [
203+
{
204+
"command": "gitpod.workspaces.refresh",
205+
"when": "false"
206+
},
207+
{
208+
"command": "gitpod.workspaces.refresh",
209+
"when": "gitpod.authenticated == true"
210+
},
211+
{
212+
"command": "gitpod.workspaces.connectInNewWindow",
213+
"when": "gitpod.authenticated == true"
214+
},
215+
{
216+
"command": "gitpod.workspaces.connectInCurrentWindow",
217+
"when": "gitpod.authenticated == true"
218+
},
219+
{
220+
"command": "gitpod.workspaces.openInBrowser",
221+
"when": "gitpod.authenticated == true"
222+
},
223+
{
224+
"command": "gitpod.workspaces.openContext",
225+
"when": "false"
226+
},
227+
{
228+
"command": "gitpod.workspaces.disconnect",
229+
"when": "false"
230+
}
127231
]
128-
}
232+
},
233+
"viewsContainers": {
234+
"activitybar": [
235+
{
236+
"id": "gitpod-view",
237+
"title": "Gitpod",
238+
"icon": "resources/explorer.svg"
239+
}
240+
]
241+
},
242+
"views": {
243+
"gitpod-view": [
244+
{
245+
"id": "gitpod-login",
246+
"name": "Login",
247+
"icon": "$(squirrel)",
248+
"when": "gitpod.authenticated != true"
249+
},
250+
{
251+
"id": "gitpod-workspaces",
252+
"name": "Workspaces",
253+
"icon": "$(squirrel)",
254+
"when": "gitpod.authenticated == true"
255+
},
256+
{
257+
"id": "gitpod-workspace",
258+
"name": "Workspace",
259+
"icon": "$(squirrel)",
260+
"when": "false"
261+
}
262+
]
263+
},
264+
"viewsWelcome": [
265+
{
266+
"view": "gitpod-login",
267+
"when": "gitpod.authenticated != true",
268+
"contents": "You have not yet signed in with Gitpod\n[Sign in](command:gitpod.signIn)"
269+
}
270+
]
129271
},
130272
"main": "./out/extension.js",
131273
"segmentKey": "YErmvd89wPsrCuGcVnF2XAl846W9WIGl",
@@ -201,4 +343,4 @@
201343
"ws": "^8.13.0",
202344
"yazl": "^2.5.1"
203345
}
204-
}
346+
}

resources/explorer.svg

Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)