|
192 | 192 | "commands": [ |
193 | 193 | { |
194 | 194 | "command": "coder.login", |
195 | | - "title": "Coder: Login" |
| 195 | + "title": "Login", |
| 196 | + "category": "Coder", |
| 197 | + "icon": "$(sign-in)" |
196 | 198 | }, |
197 | 199 | { |
198 | 200 | "command": "coder.logout", |
199 | | - "title": "Coder: Logout", |
200 | | - "when": "coder.authenticated", |
| 201 | + "title": "Logout", |
| 202 | + "category": "Coder", |
201 | 203 | "icon": "$(sign-out)" |
202 | 204 | }, |
203 | 205 | { |
204 | 206 | "command": "coder.open", |
205 | 207 | "title": "Open Workspace", |
206 | | - "icon": "$(play)", |
207 | | - "category": "Coder" |
| 208 | + "category": "Coder", |
| 209 | + "icon": "$(play)" |
208 | 210 | }, |
209 | 211 | { |
210 | 212 | "command": "coder.openFromSidebar", |
211 | | - "title": "Coder: Open Workspace", |
| 213 | + "title": "Open Workspace", |
| 214 | + "category": "Coder", |
212 | 215 | "icon": "$(play)" |
213 | 216 | }, |
214 | 217 | { |
215 | 218 | "command": "coder.createWorkspace", |
216 | 219 | "title": "Create Workspace", |
217 | 220 | "category": "Coder", |
218 | | - "when": "coder.authenticated", |
219 | 221 | "icon": "$(add)" |
220 | 222 | }, |
221 | 223 | { |
222 | 224 | "command": "coder.navigateToWorkspace", |
223 | 225 | "title": "Navigate to Workspace Page", |
224 | | - "when": "coder.authenticated", |
| 226 | + "category": "Coder", |
225 | 227 | "icon": "$(link-external)" |
226 | 228 | }, |
227 | 229 | { |
228 | 230 | "command": "coder.navigateToWorkspaceSettings", |
229 | 231 | "title": "Edit Workspace Settings", |
230 | | - "when": "coder.authenticated", |
| 232 | + "category": "Coder", |
231 | 233 | "icon": "$(settings-gear)" |
232 | 234 | }, |
233 | 235 | { |
234 | 236 | "command": "coder.workspace.update", |
235 | | - "title": "Coder: Update Workspace", |
236 | | - "when": "coder.workspace.updatable" |
| 237 | + "title": "Update Workspace", |
| 238 | + "category": "Coder" |
237 | 239 | }, |
238 | 240 | { |
239 | 241 | "command": "coder.refreshWorkspaces", |
240 | 242 | "title": "Refresh Workspace", |
241 | 243 | "category": "Coder", |
242 | | - "icon": "$(refresh)", |
243 | | - "when": "coder.authenticated" |
| 244 | + "icon": "$(refresh)" |
244 | 245 | }, |
245 | 246 | { |
246 | 247 | "command": "coder.viewLogs", |
247 | 248 | "title": "Coder: View Logs", |
248 | | - "icon": "$(list-unordered)", |
249 | | - "when": "coder.authenticated" |
| 249 | + "icon": "$(list-unordered)" |
250 | 250 | }, |
251 | 251 | { |
252 | 252 | "command": "coder.openAppStatus", |
253 | | - "title": "Coder: Open App Status", |
254 | | - "icon": "$(robot)", |
255 | | - "when": "coder.authenticated" |
| 253 | + "title": "Open App Status", |
| 254 | + "category": "Coder", |
| 255 | + "icon": "$(robot)" |
256 | 256 | }, |
257 | 257 | { |
258 | 258 | "command": "coder.searchMyWorkspaces", |
|
274 | 274 | ], |
275 | 275 | "menus": { |
276 | 276 | "commandPalette": [ |
| 277 | + { |
| 278 | + "command": "coder.login", |
| 279 | + "when": "!coder.authenticated" |
| 280 | + }, |
| 281 | + { |
| 282 | + "command": "coder.logout", |
| 283 | + "when": "coder.authenticated" |
| 284 | + }, |
| 285 | + { |
| 286 | + "command": "coder.createWorkspace", |
| 287 | + "when": "coder.authenticated" |
| 288 | + }, |
| 289 | + { |
| 290 | + "command": "coder.navigateToWorkspace", |
| 291 | + "when": "coder.authenticated" |
| 292 | + }, |
| 293 | + { |
| 294 | + "command": "coder.navigateToWorkspaceSettings", |
| 295 | + "when": "coder.authenticated" |
| 296 | + }, |
| 297 | + { |
| 298 | + "command": "coder.workspace.update", |
| 299 | + "when": "coder.workspace.updatable" |
| 300 | + }, |
| 301 | + { |
| 302 | + "command": "coder.refreshWorkspaces", |
| 303 | + "when": "coder.authenticated" |
| 304 | + }, |
| 305 | + { |
| 306 | + "command": "coder.viewLogs" |
| 307 | + }, |
| 308 | + { |
| 309 | + "command": "coder.openAppStatus", |
| 310 | + "when": "coder.authenticated" |
| 311 | + }, |
277 | 312 | { |
278 | 313 | "command": "coder.debug.listDeployments", |
279 | 314 | "when": "coder.devMode" |
|
0 commit comments