Skip to content

Commit 451851c

Browse files
authored
feat: add progress indication for refreshing environment managers (microsoft#1194)
closes microsoft#1193
1 parent f82af4e commit 451851c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/extension.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,9 @@ export async function activate(context: ExtensionContext): Promise<PythonEnviron
178178
}),
179179
commands.registerCommand('python-envs.viewLogs', () => outputChannel.show()),
180180
commands.registerCommand('python-envs.refreshAllManagers', async () => {
181-
await Promise.all(envManagers.managers.map((m) => m.refresh(undefined)));
181+
await window.withProgress({ location: { viewId: 'env-managers' } }, async () => {
182+
await Promise.all(envManagers.managers.map((m) => m.refresh(undefined)));
183+
});
182184
}),
183185
commands.registerCommand('python-envs.refreshPackages', async (item) => {
184186
await refreshPackagesCommand(item, envManagers);

0 commit comments

Comments
 (0)