File tree 1 file changed +2
-2
lines changed
arduino-ide-extension/src/node
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -86,17 +86,17 @@ export class CoreClientProvider extends GrpcClientProvider<CoreClientProvider.Cl
86
86
// 3. init instance.
87
87
if ( this . _client && ! ( this . _client instanceof Error ) ) {
88
88
try {
89
- await this . initInstance ( this . _client ) ;
89
+ await this . initInstance ( this . _client ) ; // init instance
90
90
this . _initialized . resolve ( ) ;
91
91
this . updateIndex ( this . _client ) ; // Update the indexes asynchronously
92
92
} catch ( error : unknown ) {
93
93
if (
94
94
this . isPackageIndexMissingError ( error ) ||
95
95
this . isDiscoveryNotFoundError ( error )
96
96
) {
97
+ // If it's a first start, IDE2 must run index update before the init request.
97
98
await this . updateIndexes ( this . _client ) ;
98
99
await this . initInstance ( this . _client ) ;
99
- console . log ( 'fooo' ) ;
100
100
this . _initialized . resolve ( ) ;
101
101
} else {
102
102
throw error ;
You can’t perform that action at this time.
0 commit comments