|
254 | 254 | { |
255 | 255 | "command": "python-envs.reportIssue", |
256 | 256 | "title": "%python-envs.reportIssue.title%", |
257 | | - "category": "Python Environments" |
| 257 | + "category": "Python Environments", |
| 258 | + "when": "config.python.useEnvironmentsExtension != false" |
258 | 259 | } |
259 | 260 | ], |
260 | 261 | "menus": { |
|
301 | 302 | }, |
302 | 303 | { |
303 | 304 | "command": "python-envs.runAsTask", |
304 | | - "when": "true" |
| 305 | + "when": "config.python.useEnvironmentsExtension != false" |
305 | 306 | }, |
306 | 307 | { |
307 | 308 | "command": "python-envs.terminal.activate", |
|
326 | 327 | { |
327 | 328 | "command": "python-envs.createAny", |
328 | 329 | "when": "false" |
| 330 | + }, |
| 331 | + { |
| 332 | + "command": "python-envs.createNewProjectFromTemplate", |
| 333 | + "when": "config.python.useEnvironmentsExtension != false" |
| 334 | + }, |
| 335 | + { |
| 336 | + "command": "python-envs.terminal.revertStartupScriptChanges", |
| 337 | + "when": "config.python.useEnvironmentsExtension != false" |
| 338 | + }, |
| 339 | + { |
| 340 | + "command": "python-envs.reportIssue", |
| 341 | + "when": "config.python.useEnvironmentsExtension != false" |
329 | 342 | } |
330 | 343 | ], |
331 | 344 | "view/item/context": [ |
|
463 | 476 | { |
464 | 477 | "id": "python", |
465 | 478 | "title": "Python", |
466 | | - "icon": "files/logo.svg" |
| 479 | + "icon": "files/logo.svg", |
| 480 | + "when": "config.python.useEnvironmentsExtension != false" |
467 | 481 | } |
468 | 482 | ] |
469 | 483 | }, |
|
473 | 487 | "id": "python-projects", |
474 | 488 | "name": "Python Projects", |
475 | 489 | "icon": "files/logo.svg", |
476 | | - "contextualTitle": "Python Projects" |
| 490 | + "contextualTitle": "Python Projects", |
| 491 | + "when": "config.python.useEnvironmentsExtension != false" |
477 | 492 | }, |
478 | 493 | { |
479 | 494 | "id": "env-managers", |
480 | 495 | "name": "Environment Managers", |
481 | 496 | "icon": "files/logo.svg", |
482 | | - "contextualTitle": "Environment Managers" |
| 497 | + "contextualTitle": "Environment Managers", |
| 498 | + "when": "config.python.useEnvironmentsExtension != false" |
483 | 499 | } |
484 | 500 | ] |
485 | 501 | }, |
|
0 commit comments