File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -42,18 +42,22 @@ export async function registerSystemPythonFeatures(
4242 ) ;
4343
4444 const packageDebouncedRefresh = createSimpleDebounce ( 500 , async ( ) => {
45- // Get all projects and refresh their packages
4645 const projects = await api . getPythonProjects ( ) ;
47- for ( const project of projects ) {
48- const env = await api . getEnvironment ( project . uri ) ;
49- if ( env ) {
46+ await Promise . all (
47+ projects . map ( async ( project ) => {
48+ const env = await api . getEnvironment ( project . uri ) ;
49+ if ( ! env ) {
50+ return ;
51+ }
5052 try {
5153 await api . refreshPackages ( env ) ;
5254 } catch ( ex ) {
53- log . error ( `Failed to refresh packages for environment ${ env . envId } : ${ ex instanceof Error ? ex . message : String ( ex ) } ` ) ;
55+ log . error (
56+ `Failed to refresh packages for environment ${ env . envId } : ${ ex instanceof Error ? ex . message : String ( ex ) } ` ,
57+ ) ;
5458 }
55- }
56- }
59+ } ) ,
60+ ) ;
5761 } ) ;
5862 const packageWatcher = createFileSystemWatcher (
5963 '**/site-packages/*.dist-info/METADATA' ,
You can’t perform that action at this time.
0 commit comments