Skip to content

Commit 77e09b1

Browse files
committed
Address workspace explorer feedback
1 parent 2b4f50f commit 77e09b1

File tree

4 files changed

+223
-86
lines changed

4 files changed

+223
-86
lines changed

package.json

Lines changed: 66 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,30 @@
135135
"title": "Open...",
136136
"icon": "$(arrow-right)"
137137
},
138+
{
139+
"command": "gitpod.workspaces.connectInCurrentWindow_inline",
140+
"category": "Gitpod",
141+
"title": "Open...",
142+
"icon": "$(arrow-right)"
143+
},
144+
{
145+
"command": "gitpod.workspaces.stopWorkspace",
146+
"category": "Gitpod",
147+
"title": "Stop Workspace...",
148+
"icon": "$(primitive-square)"
149+
},
150+
{
151+
"command": "gitpod.workspaces.stopWorkspace_inline",
152+
"category": "Gitpod",
153+
"title": "Stop Workspace...",
154+
"icon": "$(primitive-square)"
155+
},
156+
{
157+
"command": "gitpod.workspaces.stopCurrentWorkspace",
158+
"category": "Gitpod",
159+
"title": "Stop Current Workspace",
160+
"icon": "$(primitive-square)"
161+
},
138162
{
139163
"command": "gitpod.workspaces.openInBrowser",
140164
"category": "Gitpod",
@@ -145,6 +169,11 @@
145169
"category": "Gitpod",
146170
"title": "Open Context"
147171
},
172+
{
173+
"command": "gitpod.workspaces.deleteWorkspace",
174+
"category": "Gitpod",
175+
"title": "Delete Workspace..."
176+
},
148177
{
149178
"command": "gitpod.workspaces.disconnect",
150179
"category": "Gitpod",
@@ -169,10 +198,15 @@
169198
],
170199
"view/item/context": [
171200
{
172-
"command": "gitpod.workspaces.connectInCurrentWindow",
201+
"command": "gitpod.workspaces.connectInCurrentWindow_inline",
173202
"when": "viewItem =~ /^gitpod-workspaces.workspace(?:.running)?$/",
174203
"group": "inline@1"
175204
},
205+
{
206+
"command": "gitpod.workspaces.stopWorkspace_inline",
207+
"when": "viewItem =~ /^gitpod-workspaces.workspace.running$/",
208+
"group": "inline@2"
209+
},
176210
{
177211
"command": "gitpod.workspaces.disconnect",
178212
"when": "viewItem =~ /^gitpod-workspaces.workspace.+connected$/",
@@ -191,12 +225,22 @@
191225
{
192226
"command": "gitpod.workspaces.openInBrowser",
193227
"when": "viewItem =~ /^gitpod-workspaces.workspace/",
194-
"group": "navigation@4"
228+
"group": "navigation@3"
195229
},
196230
{
197231
"command": "gitpod.workspaces.openContext",
198232
"when": "viewItem =~ /^gitpod-workspaces.workspace/",
233+
"group": "navigation@4"
234+
},
235+
{
236+
"command": "gitpod.workspaces.stopWorkspace",
237+
"when": "viewItem =~ /^gitpod-workspaces.workspace.running$/",
199238
"group": "navigation@5"
239+
},
240+
{
241+
"command": "gitpod.workspaces.deleteWorkspace",
242+
"when": "viewItem =~ /^gitpod-workspaces.workspace/",
243+
"group": "destruction@1"
200244
}
201245
],
202246
"commandPalette": [
@@ -216,6 +260,22 @@
216260
"command": "gitpod.workspaces.connectInCurrentWindow",
217261
"when": "gitpod.authenticated == true"
218262
},
263+
{
264+
"command": "gitpod.workspaces.connectInCurrentWindow_inline",
265+
"when": "false"
266+
},
267+
{
268+
"command": "gitpod.workspaces.stopWorkspace",
269+
"when": "gitpod.authenticated == true"
270+
},
271+
{
272+
"command": "gitpod.workspaces.stopWorkspace_inline",
273+
"when": "false"
274+
},
275+
{
276+
"command": "gitpod.workspaces.stopCurrentWorkspace",
277+
"when": "gitpod.authenticated == true && gitpod.inWorkspace == true"
278+
},
219279
{
220280
"command": "gitpod.workspaces.openInBrowser",
221281
"when": "gitpod.authenticated == true"
@@ -224,6 +284,10 @@
224284
"command": "gitpod.workspaces.openContext",
225285
"when": "false"
226286
},
287+
{
288+
"command": "gitpod.workspaces.deleteWorkspace",
289+
"when": "gitpod.authenticated == true"
290+
},
227291
{
228292
"command": "gitpod.workspaces.disconnect",
229293
"when": "false"

0 commit comments

Comments
 (0)