|
126 | 126 | { |
127 | 127 | "command": "gitpod.workspaces.connectInNewWindow", |
128 | 128 | "category": "Gitpod", |
129 | | - "title": "Open in New Window...", |
130 | | - "icon": "$(empty-window)" |
| 129 | + "title": "Open Workspace in New Window" |
| 130 | + }, |
| 131 | + { |
| 132 | + "command": "gitpod.workspaces.connectInNewWindow_context", |
| 133 | + "category": "Gitpod", |
| 134 | + "title": "Open in New Window" |
131 | 135 | }, |
132 | 136 | { |
133 | 137 | "command": "gitpod.workspaces.connectInCurrentWindow", |
134 | 138 | "category": "Gitpod", |
135 | | - "title": "Open...", |
136 | | - "icon": "$(arrow-right)" |
| 139 | + "title": "Connect to Workspace" |
| 140 | + }, |
| 141 | + { |
| 142 | + "command": "gitpod.workspaces.connectInCurrentWindow_context", |
| 143 | + "category": "Gitpod", |
| 144 | + "title": "Start and Connect" |
| 145 | + }, |
| 146 | + { |
| 147 | + "command": "gitpod.workspaces.connectInCurrentWindow_context@1", |
| 148 | + "category": "Gitpod", |
| 149 | + "title": "Connect" |
137 | 150 | }, |
138 | 151 | { |
139 | 152 | "command": "gitpod.workspaces.connectInCurrentWindow_inline", |
140 | 153 | "category": "Gitpod", |
141 | | - "title": "Open...", |
| 154 | + "title": "Start and Connect", |
| 155 | + "icon": "$(arrow-right)" |
| 156 | + }, |
| 157 | + { |
| 158 | + "command": "gitpod.workspaces.connectInCurrentWindow_inline@1", |
| 159 | + "category": "Gitpod", |
| 160 | + "title": "Connect", |
142 | 161 | "icon": "$(arrow-right)" |
143 | 162 | }, |
144 | 163 | { |
145 | 164 | "command": "gitpod.workspaces.stopWorkspace", |
146 | 165 | "category": "Gitpod", |
147 | | - "title": "Stop Workspace...", |
| 166 | + "title": "Stop Workspace", |
| 167 | + "icon": "$(primitive-square)" |
| 168 | + }, |
| 169 | + { |
| 170 | + "command": "gitpod.workspaces.stopWorkspace_context", |
| 171 | + "category": "Gitpod", |
| 172 | + "title": "Stop", |
148 | 173 | "icon": "$(primitive-square)" |
149 | 174 | }, |
150 | 175 | { |
151 | 176 | "command": "gitpod.workspaces.stopWorkspace_inline", |
152 | 177 | "category": "Gitpod", |
153 | | - "title": "Stop Workspace...", |
| 178 | + "title": "Stop", |
154 | 179 | "icon": "$(primitive-square)" |
155 | 180 | }, |
156 | 181 | { |
157 | 182 | "command": "gitpod.workspaces.stopCurrentWorkspace", |
158 | 183 | "category": "Gitpod", |
159 | | - "title": "Stop Current Workspace", |
| 184 | + "title": "Disconnect and Stop", |
160 | 185 | "icon": "$(primitive-square)" |
161 | 186 | }, |
162 | 187 | { |
163 | 188 | "command": "gitpod.workspaces.openInBrowser", |
164 | 189 | "category": "Gitpod", |
165 | | - "title": "Open in Browser..." |
| 190 | + "title": "Open in Browser" |
166 | 191 | }, |
167 | 192 | { |
168 | 193 | "command": "gitpod.workspaces.openContext", |
|
172 | 197 | { |
173 | 198 | "command": "gitpod.workspaces.deleteWorkspace", |
174 | 199 | "category": "Gitpod", |
175 | | - "title": "Delete Workspace..." |
| 200 | + "title": "Delete Workspace" |
| 201 | + }, |
| 202 | + { |
| 203 | + "command": "gitpod.workspaces.deleteWorkspace_context", |
| 204 | + "category": "Gitpod", |
| 205 | + "title": "Delete" |
176 | 206 | }, |
177 | 207 | { |
178 | 208 | "command": "gitpod.workspaces.disconnect", |
179 | 209 | "category": "Gitpod", |
180 | | - "title": "Close Remote Connection", |
| 210 | + "title": "Disconnect", |
181 | 211 | "icon": "$(debug-disconnect)" |
182 | 212 | } |
183 | 213 | ], |
|
199 | 229 | "view/item/context": [ |
200 | 230 | { |
201 | 231 | "command": "gitpod.workspaces.connectInCurrentWindow_inline", |
202 | | - "when": "viewItem =~ /^gitpod-workspaces.workspace(?:.running)?$/", |
| 232 | + "when": "viewItem =~ /^gitpod-workspaces.workspace$/", |
| 233 | + "group": "inline@1" |
| 234 | + }, |
| 235 | + { |
| 236 | + "command": "gitpod.workspaces.connectInCurrentWindow_inline@1", |
| 237 | + "when": "viewItem =~ /^gitpod-workspaces.workspace.running$/", |
203 | 238 | "group": "inline@1" |
204 | 239 | }, |
205 | 240 | { |
|
213 | 248 | "group": "inline@3" |
214 | 249 | }, |
215 | 250 | { |
216 | | - "command": "gitpod.workspaces.connectInCurrentWindow", |
217 | | - "when": "viewItem =~ /^gitpod-workspaces.workspace/", |
| 251 | + "command": "gitpod.workspaces.stopCurrentWorkspace", |
| 252 | + "when": "viewItem =~ /^gitpod-workspaces.workspace.+connected$/", |
| 253 | + "group": "inline@4" |
| 254 | + }, |
| 255 | + { |
| 256 | + "command": "gitpod.workspaces.connectInCurrentWindow_context", |
| 257 | + "when": "viewItem =~ /^gitpod-workspaces.workspace$/", |
218 | 258 | "group": "navigation@1" |
219 | 259 | }, |
220 | 260 | { |
221 | | - "command": "gitpod.workspaces.connectInNewWindow", |
| 261 | + "command": "gitpod.workspaces.connectInCurrentWindow_context@1", |
| 262 | + "when": "viewItem =~ /^gitpod-workspaces.workspace.running$/", |
| 263 | + "group": "navigation@1" |
| 264 | + }, |
| 265 | + { |
| 266 | + "command": "gitpod.workspaces.connectInNewWindow_context", |
222 | 267 | "when": "viewItem =~ /^gitpod-workspaces.workspace/", |
223 | 268 | "group": "navigation@2" |
224 | 269 | }, |
|
233 | 278 | "group": "navigation@4" |
234 | 279 | }, |
235 | 280 | { |
236 | | - "command": "gitpod.workspaces.stopWorkspace", |
| 281 | + "command": "gitpod.workspaces.stopWorkspace_context", |
237 | 282 | "when": "viewItem =~ /^gitpod-workspaces.workspace.running$/", |
238 | 283 | "group": "navigation@5" |
239 | 284 | }, |
240 | 285 | { |
241 | | - "command": "gitpod.workspaces.deleteWorkspace", |
| 286 | + "command": "gitpod.workspaces.deleteWorkspace_context", |
242 | 287 | "when": "viewItem =~ /^gitpod-workspaces.workspace/", |
243 | 288 | "group": "destruction@1" |
244 | 289 | } |
|
256 | 301 | "command": "gitpod.workspaces.connectInNewWindow", |
257 | 302 | "when": "gitpod.authenticated == true" |
258 | 303 | }, |
| 304 | + { |
| 305 | + "command": "gitpod.workspaces.connectInNewWindow_context", |
| 306 | + "when": "false" |
| 307 | + }, |
259 | 308 | { |
260 | 309 | "command": "gitpod.workspaces.connectInCurrentWindow", |
261 | 310 | "when": "gitpod.authenticated == true" |
262 | 311 | }, |
| 312 | + { |
| 313 | + "command": "gitpod.workspaces.connectInCurrentWindow_context", |
| 314 | + "when": "false" |
| 315 | + }, |
| 316 | + { |
| 317 | + "command": "gitpod.workspaces.connectInCurrentWindow_context@1", |
| 318 | + "when": "false" |
| 319 | + }, |
263 | 320 | { |
264 | 321 | "command": "gitpod.workspaces.connectInCurrentWindow_inline", |
265 | 322 | "when": "false" |
266 | 323 | }, |
| 324 | + { |
| 325 | + "command": "gitpod.workspaces.connectInCurrentWindow_inline@1", |
| 326 | + "when": "false" |
| 327 | + }, |
267 | 328 | { |
268 | 329 | "command": "gitpod.workspaces.stopWorkspace", |
269 | 330 | "when": "gitpod.authenticated == true" |
270 | 331 | }, |
| 332 | + { |
| 333 | + "command": "gitpod.workspaces.stopWorkspace_context", |
| 334 | + "when": "false" |
| 335 | + }, |
271 | 336 | { |
272 | 337 | "command": "gitpod.workspaces.stopWorkspace_inline", |
273 | 338 | "when": "false" |
274 | 339 | }, |
275 | 340 | { |
276 | 341 | "command": "gitpod.workspaces.stopCurrentWorkspace", |
277 | | - "when": "gitpod.authenticated == true && gitpod.inWorkspace == true" |
| 342 | + "when": "false" |
278 | 343 | }, |
279 | 344 | { |
280 | 345 | "command": "gitpod.workspaces.openInBrowser", |
281 | | - "when": "gitpod.authenticated == true" |
| 346 | + "when": "gitpod.authenticated == true && gitpod.inWorkspace == true" |
282 | 347 | }, |
283 | 348 | { |
284 | 349 | "command": "gitpod.workspaces.openContext", |
|
288 | 353 | "command": "gitpod.workspaces.deleteWorkspace", |
289 | 354 | "when": "gitpod.authenticated == true" |
290 | 355 | }, |
| 356 | + { |
| 357 | + "command": "gitpod.workspaces.deleteWorkspace_context", |
| 358 | + "when": "false" |
| 359 | + }, |
291 | 360 | { |
292 | 361 | "command": "gitpod.workspaces.disconnect", |
293 | 362 | "when": "false" |
|
0 commit comments