Skip to content

Commit d0dab01

Browse files
authored
remove refreshManager command and related entries (#515)
fixes #331
1 parent f0d3ec5 commit d0dab01

File tree

3 files changed

+1
-21
lines changed

3 files changed

+1
-21
lines changed

package.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,6 @@
173173
"category": "Python",
174174
"icon": "$(refresh)"
175175
},
176-
{
177-
"command": "python-envs.refreshManager",
178-
"title": "%python-envs.refreshManager.title%",
179-
"category": "Python",
180-
"icon": "$(refresh)"
181-
},
182176
{
183177
"command": "python-envs.refreshPackages",
184178
"title": "%python-envs.refreshPackages.title%",
@@ -264,10 +258,6 @@
264258
"command": "python-envs.refreshAllManagers",
265259
"when": "false"
266260
},
267-
{
268-
"command": "python-envs.refreshManager",
269-
"when": "false"
270-
},
271261
{
272262
"command": "python-envs.refreshPackages",
273263
"when": "false"
@@ -348,11 +338,6 @@
348338
"group": "inline",
349339
"when": "view == env-managers && viewItem =~ /.*pythonEnvironment.*/"
350340
},
351-
{
352-
"command": "python-envs.refreshManager",
353-
"group": "inline",
354-
"when": "view == env-managers && viewItem =~ /.*pythonEnvManager.*/"
355-
},
356341
{
357342
"command": "python-envs.createTerminal",
358343
"group": "inline",

package.nls.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"python-envs.reset.title": "Reset to Default",
2525
"python-envs.remove.title": "Delete Environment",
2626
"python-envs.refreshAllManagers.title": "Refresh All Environment Managers",
27-
"python-envs.refreshManager.title": "Refresh Environments List",
2827
"python-envs.refreshPackages.title": "Refresh Packages List",
2928
"python-envs.packages.title": "Manage Packages",
3029
"python-envs.clearCache.title": "Clear Cache",
@@ -35,4 +34,4 @@
3534
"python-envs.terminal.activate.title": "Activate Environment in Current Terminal",
3635
"python-envs.terminal.deactivate.title": "Deactivate Environment in Current Terminal",
3736
"python-envs.uninstallPackage.title": "Uninstall Package"
38-
}
37+
}

src/extension.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import {
2929
createTerminalCommand,
3030
getPackageCommandOptions,
3131
handlePackageUninstall,
32-
refreshManagerCommand,
3332
refreshPackagesCommand,
3433
removeEnvironmentCommand,
3534
removePythonProject,
@@ -147,9 +146,6 @@ export async function activate(context: ExtensionContext): Promise<PythonEnviron
147146
await cleanupStartupScripts(shellStartupProviders);
148147
}),
149148
commands.registerCommand('python-envs.viewLogs', () => outputChannel.show()),
150-
commands.registerCommand('python-envs.refreshManager', async (item) => {
151-
await refreshManagerCommand(item);
152-
}),
153149
commands.registerCommand('python-envs.refreshAllManagers', async () => {
154150
await Promise.all(envManagers.managers.map((m) => m.refresh(undefined)));
155151
}),

0 commit comments

Comments
 (0)