|
135 | 135 | "title": "Open...",
|
136 | 136 | "icon": "$(arrow-right)"
|
137 | 137 | },
|
| 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 | + }, |
138 | 162 | {
|
139 | 163 | "command": "gitpod.workspaces.openInBrowser",
|
140 | 164 | "category": "Gitpod",
|
|
145 | 169 | "category": "Gitpod",
|
146 | 170 | "title": "Open Context"
|
147 | 171 | },
|
| 172 | + { |
| 173 | + "command": "gitpod.workspaces.deleteWorkspace", |
| 174 | + "category": "Gitpod", |
| 175 | + "title": "Delete Workspace..." |
| 176 | + }, |
148 | 177 | {
|
149 | 178 | "command": "gitpod.workspaces.disconnect",
|
150 | 179 | "category": "Gitpod",
|
|
169 | 198 | ],
|
170 | 199 | "view/item/context": [
|
171 | 200 | {
|
172 |
| - "command": "gitpod.workspaces.connectInCurrentWindow", |
| 201 | + "command": "gitpod.workspaces.connectInCurrentWindow_inline", |
173 | 202 | "when": "viewItem =~ /^gitpod-workspaces.workspace(?:.running)?$/",
|
174 | 203 | "group": "inline@1"
|
175 | 204 | },
|
| 205 | + { |
| 206 | + "command": "gitpod.workspaces.stopWorkspace_inline", |
| 207 | + "when": "viewItem =~ /^gitpod-workspaces.workspace.running$/", |
| 208 | + "group": "inline@2" |
| 209 | + }, |
176 | 210 | {
|
177 | 211 | "command": "gitpod.workspaces.disconnect",
|
178 | 212 | "when": "viewItem =~ /^gitpod-workspaces.workspace.+connected$/",
|
|
191 | 225 | {
|
192 | 226 | "command": "gitpod.workspaces.openInBrowser",
|
193 | 227 | "when": "viewItem =~ /^gitpod-workspaces.workspace/",
|
194 |
| - "group": "navigation@4" |
| 228 | + "group": "navigation@3" |
195 | 229 | },
|
196 | 230 | {
|
197 | 231 | "command": "gitpod.workspaces.openContext",
|
198 | 232 | "when": "viewItem =~ /^gitpod-workspaces.workspace/",
|
| 233 | + "group": "navigation@4" |
| 234 | + }, |
| 235 | + { |
| 236 | + "command": "gitpod.workspaces.stopWorkspace", |
| 237 | + "when": "viewItem =~ /^gitpod-workspaces.workspace.running$/", |
199 | 238 | "group": "navigation@5"
|
| 239 | + }, |
| 240 | + { |
| 241 | + "command": "gitpod.workspaces.deleteWorkspace", |
| 242 | + "when": "viewItem =~ /^gitpod-workspaces.workspace/", |
| 243 | + "group": "destruction@1" |
200 | 244 | }
|
201 | 245 | ],
|
202 | 246 | "commandPalette": [
|
|
216 | 260 | "command": "gitpod.workspaces.connectInCurrentWindow",
|
217 | 261 | "when": "gitpod.authenticated == true"
|
218 | 262 | },
|
| 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 | + }, |
219 | 279 | {
|
220 | 280 | "command": "gitpod.workspaces.openInBrowser",
|
221 | 281 | "when": "gitpod.authenticated == true"
|
|
224 | 284 | "command": "gitpod.workspaces.openContext",
|
225 | 285 | "when": "false"
|
226 | 286 | },
|
| 287 | + { |
| 288 | + "command": "gitpod.workspaces.deleteWorkspace", |
| 289 | + "when": "gitpod.authenticated == true" |
| 290 | + }, |
227 | 291 | {
|
228 | 292 | "command": "gitpod.workspaces.disconnect",
|
229 | 293 | "when": "false"
|
|
0 commit comments