Skip to content

Commit ef81040

Browse files
committed
feat: add progress indication for refreshing environment managers
1 parent d20d357 commit ef81040

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/extension.ts

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

0 commit comments

Comments
 (0)