Skip to content

Commit 3fa967a

Browse files
committed
add exp support
1 parent e4895e2 commit 3fa967a

2 files changed

Lines changed: 322 additions & 293 deletions

File tree

package.json

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,8 @@
254254
{
255255
"command": "python-envs.reportIssue",
256256
"title": "%python-envs.reportIssue.title%",
257-
"category": "Python Environments"
257+
"category": "Python Environments",
258+
"when": "config.python.useEnvironmentsExtension != false"
258259
}
259260
],
260261
"menus": {
@@ -301,7 +302,7 @@
301302
},
302303
{
303304
"command": "python-envs.runAsTask",
304-
"when": "true"
305+
"when": "config.python.useEnvironmentsExtension != false"
305306
},
306307
{
307308
"command": "python-envs.terminal.activate",
@@ -326,6 +327,18 @@
326327
{
327328
"command": "python-envs.createAny",
328329
"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"
329342
}
330343
],
331344
"view/item/context": [
@@ -463,7 +476,8 @@
463476
{
464477
"id": "python",
465478
"title": "Python",
466-
"icon": "files/logo.svg"
479+
"icon": "files/logo.svg",
480+
"when": "config.python.useEnvironmentsExtension != false"
467481
}
468482
]
469483
},
@@ -473,13 +487,15 @@
473487
"id": "python-projects",
474488
"name": "Python Projects",
475489
"icon": "files/logo.svg",
476-
"contextualTitle": "Python Projects"
490+
"contextualTitle": "Python Projects",
491+
"when": "config.python.useEnvironmentsExtension != false"
477492
},
478493
{
479494
"id": "env-managers",
480495
"name": "Environment Managers",
481496
"icon": "files/logo.svg",
482-
"contextualTitle": "Environment Managers"
497+
"contextualTitle": "Environment Managers",
498+
"when": "config.python.useEnvironmentsExtension != false"
483499
}
484500
]
485501
},

0 commit comments

Comments
 (0)