File tree Expand file tree Collapse file tree 4 files changed +145
-111
lines changed
Expand file tree Collapse file tree 4 files changed +145
-111
lines changed Original file line number Diff line number Diff line change 88 "isBackground" : true ,
99 "label" : " npm: watch" ,
1010 "problemMatcher" : {
11- "owner" : " typescript" ,
12- "source" : " ts" ,
13- "applyTo" : " closedDocuments" ,
14- "fileLocation" : [" relative" , " ${cwd}" ],
15- "pattern" : {
16- "regexp" : " ^Error: Build failed[^:]*:([^:]*):([^:]*):([^:]*): (ERROR:.*)$" ,
17- "file" : 1 ,
18- "line" : 2 ,
19- "column" : 3 ,
20- "message" : 4
21- },
11+ "base" : " $eslint-stylish" ,
2212 "background" : {
23- "activeOnStart" : true ,
2413 "beginsPattern" : {
2514 "regexp" : " ^esbuild:started$"
2615 },
Original file line number Diff line number Diff line change @@ -61,16 +61,20 @@ const webviewConfig = {
6161 context ( webviewConfig ) ,
6262 context ( extensionConfig ) ,
6363 ] ) ;
64- await Promise . all ( contexts . map ( ( ctx ) => ctx . rebuild ( ) ) ) ;
65- contexts . forEach ( ( ctx ) => ctx . watch ( { delay : 500 } ) ) ;
66- console . log ( "esbuild:watching" ) ;
64+ await Promise . all ( contexts . map ( ( ctx ) => ctx . rebuild ( ) ) ) . finally ( ( ) =>
65+ Promise . all ( contexts . map ( ( ctx ) => ctx . watch ( { delay : 500 } ) ) )
66+ . then ( ( ) => console . log ( "esbuild:watching" ) )
67+ . catch ( ( err ) => {
68+ console . error ( err ) ;
69+ process . exit ( 1 ) ;
70+ } ) ,
71+ ) ;
6772 } else {
6873 await build ( serverConfig ) ;
6974 await build ( webviewConfig ) ;
7075 await build ( extensionConfig ) ;
7176 }
7277 } catch ( err ) {
7378 console . error ( err ) ;
74- process . exit ( 1 ) ;
7579 }
7680} ) ( ) ;
You can’t perform that action at this time.
0 commit comments