@@ -31,11 +31,12 @@ class Watcher {
3131 // Pass CLI args, save for `node` and the initial script name.
3232 const args = process . argv . slice ( 2 )
3333 this . webServer = spawn ( "node" , [ path . join ( this . rootPath , "out/node/entry.js" ) , ...args ] )
34+ onLine ( this . webServer , ( line ) => console . log ( "[code-server]" , line ) )
3435 const { pid } = this . webServer
3536
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` ) )
3738
38- console . log ( "\n[Code Server ]" , `Spawned web server process ${ pid } ` )
39+ console . log ( "\n[code-server ]" , `Spawned web server process ${ pid } ` )
3940 }
4041
4142 //#endregion
@@ -82,21 +83,21 @@ class Watcher {
8283 private parseVSCodeLine : OnLineCallback = ( strippedLine , originalLine ) => {
8384 if ( ! strippedLine . length ) return
8485
85- console . log ( "[VS Code]" , originalLine )
86+ console . log ( "[Code OSS ]" , originalLine )
8687
8788 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 ♻️)" )
8990 this . reloadWebServer ( )
9091 }
9192 }
9293
9394 private parseCodeServerLine : OnLineCallback = ( strippedLine , originalLine ) => {
9495 if ( ! strippedLine . length ) return
9596
96- console . log ( "[Compiler][Code Server ]" , originalLine )
97+ console . log ( "[Compiler][code-server ]" , originalLine )
9798
9899 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 ♻️)" )
100101 this . reloadWebServer ( )
101102 }
102103 }
0 commit comments