Skip to content

Commit 431ccc5

Browse files
committed
update more command palette
1 parent de2584f commit 431ccc5

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

package.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@
110110
"command": "python-envs.setEnvManager",
111111
"title": "%python-envs.setEnvManager.title%",
112112
"category": "Python",
113-
"icon": "$(gear)"
113+
"icon": "$(gear)",
114+
"when": "config.python.useEnvironmentsExtension != false"
114115
},
115116
{
116117
"command": "python-envs.setPkgManager",
@@ -293,6 +294,22 @@
293294
"command": "python-envs.addPythonProjectGivenResource",
294295
"when": "false"
295296
},
297+
{
298+
"command": "python-envs.setEnvManager",
299+
"when": "config.python.useEnvironmentsExtension != false"
300+
},
301+
{
302+
"command": "python-envs.packages",
303+
"when": "config.python.useEnvironmentsExtension != false"
304+
},
305+
{
306+
"command": "python-envs.set",
307+
"when": "config.python.useEnvironmentsExtension != false"
308+
},
309+
{
310+
"command": "python-envs.setPkgManager",
311+
"when": "config.python.useEnvironmentsExtension != false"
312+
},
296313
{
297314
"command": "python-envs.removePythonProject",
298315
"when": "false"

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export async function activate(context: ExtensionContext): Promise<PythonEnviron
156156
traceWarn(
157157
'The Python environments extension has been disabled via a setting. If you would like to opt into using the extension, please add the following to your user settings (note that updating this setting requires a window reload afterwards):\n\n"python.useEnvironmentsExtension": true',
158158
);
159-
deactivate(context);
159+
await deactivate(context);
160160
return;
161161
}
162162
const start = new StopWatch();

0 commit comments

Comments
 (0)