@@ -31,11 +31,12 @@ class Watcher {
31
31
// Pass CLI args, save for `node` and the initial script name.
32
32
const args = process . argv . slice ( 2 )
33
33
this . webServer = spawn ( "node" , [ path . join ( this . rootPath , "out/node/entry.js" ) , ...args ] )
34
+ onLine ( this . webServer , ( line ) => console . log ( "[code-server]" , line ) )
34
35
const { pid } = this . webServer
35
36
36
- this . webServer . on ( "exit" , ( ) => console . log ( "[Code Server ]" , `Web process ${ pid } exited` ) )
37
+ this . webServer . on ( "exit" , ( ) => console . log ( "[code-server ]" , `Web process ${ pid } exited` ) )
37
38
38
- console . log ( "\n[Code Server ]" , `Spawned web server process ${ pid } ` )
39
+ console . log ( "\n[code-server ]" , `Spawned web server process ${ pid } ` )
39
40
}
40
41
41
42
//#endregion
@@ -82,21 +83,21 @@ class Watcher {
82
83
private parseVSCodeLine : OnLineCallback = ( strippedLine , originalLine ) => {
83
84
if ( ! strippedLine . length ) return
84
85
85
- console . log ( "[VS Code]" , originalLine )
86
+ console . log ( "[Code OSS ]" , originalLine )
86
87
87
88
if ( strippedLine . includes ( "Finished compilation with" ) ) {
88
- console . log ( "[VS Code] ✨ Finished compiling! ✨" , "(Refresh your web browser ♻️)" )
89
+ console . log ( "[Code OSS ] ✨ Finished compiling! ✨" , "(Refresh your web browser ♻️)" )
89
90
this . reloadWebServer ( )
90
91
}
91
92
}
92
93
93
94
private parseCodeServerLine : OnLineCallback = ( strippedLine , originalLine ) => {
94
95
if ( ! strippedLine . length ) return
95
96
96
- console . log ( "[Compiler][Code Server ]" , originalLine )
97
+ console . log ( "[Compiler][code-server ]" , originalLine )
97
98
98
99
if ( strippedLine . includes ( "Watching for file changes" ) ) {
99
- console . log ( "[Compiler][Code Server ]" , "Finished compiling!" , "(Refresh your web browser ♻️)" )
100
+ console . log ( "[Compiler][code-server ]" , "Finished compiling!" , "(Refresh your web browser ♻️)" )
100
101
this . reloadWebServer ( )
101
102
}
102
103
}
0 commit comments