File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,14 +27,20 @@ export class EditorConfigurations {
2727 async configure ( ) : Promise < void > {
2828 console . log ( '# Checking if editor configurations are provided...' ) ;
2929
30- const configmap = await this . getConfigmap ( ) ;
31- if ( ! configmap || ! configmap . data ) {
32- console . log ( ' > Editor configurations are not provided' ) ;
33- return ;
34- }
30+ try {
31+ const configmap = await this . getConfigmap ( ) ;
32+ if ( ! configmap || ! configmap . data ) {
33+ console . log ( ' > Editor configurations are not provided' ) ;
34+ return ;
35+ }
36+
37+ const settingsPromise = this . configureSettings ( configmap ) ;
38+ const extensionsPromise = this . configureExtensions ( configmap ) ;
3539
36- await this . configureSettings ( configmap ) ;
37- await this . configureExtensions ( configmap ) ;
40+ await Promise . all ( [ settingsPromise , extensionsPromise ] ) ;
41+ } catch ( error ) {
42+ console . log ( ` > Failed to apply editor configurations ${ error } ` ) ;
43+ }
3844 }
3945
4046 private async configureSettings ( configmap : k8s . V1ConfigMap ) : Promise < void > {
You can’t perform that action at this time.
0 commit comments