File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed 
arduino-ide-extension/src/electron-main/theia Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -212,12 +212,16 @@ export class ElectronMainApplication extends TheiaElectronMainApplication {
212212          this . _appInfo  =  updateAppInfo ( this . _appInfo ,  this . _config ) ; 
213213          this . hookApplicationEvents ( ) ; 
214214          this . showInitialWindow ( undefined ) ; 
215-           const  port  =  await  this . startBackend ( ) ; 
215+           const  [ port ]  =  await  Promise . all ( [ 
216+             this . startBackend ( ) , 
217+             app . whenReady ( ) , 
218+           ] ) ; 
216219          this . startContentTracing ( ) ; 
217220          this . _backendPort . resolve ( port ) ; 
218-           await  app . whenReady ( ) ; 
219-           await  this . attachElectronSecurityToken ( port ) ; 
220-           await  this . startContributions ( ) ; 
221+           await  Promise . all ( [ 
222+             this . attachElectronSecurityToken ( port ) , 
223+             this . startContributions ( ) , 
224+           ] ) ; 
221225          this . handleMainCommand ( { 
222226            file : args . file , 
223227            cwd, 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments