@@ -20,7 +20,7 @@ const EXTENSIONS_ROOT = path.join(APP_ROOT, 'extensions');
20
20
const WEB_MAIN = path . join ( APP_ROOT , 'src' , 'vs' , 'code' , 'browser' , 'workbench' , 'workbench-dev.html' ) ;
21
21
22
22
const args = minimist ( process . argv , {
23
- boolean :[
23
+ boolean : [
24
24
'no-launch' ,
25
25
'help'
26
26
] ,
@@ -32,17 +32,17 @@ const args = minimist(process.argv, {
32
32
] ,
33
33
} ) ;
34
34
35
- if ( args . help ) {
35
+ if ( args . help ) {
36
36
console . log (
37
37
'yarn web [options]\n' +
38
- ' --no-launch Do not start browser\n' +
39
- ' --scheme Protocol (https or http)\n' +
40
- ' --host Remote host\n' +
41
- ' --port Remote/Local port\n' +
42
- ' --local_port Local port override\n' +
43
- ' --help\n' +
44
- '[Example]\n' +
45
- ' yarn web --no-launch --scheme https --host example.com --port 8080 --local_port 30000'
38
+ ' --no-launch Do not open VSCode web in the browser\n' +
39
+ ' --scheme Protocol (https or http)\n' +
40
+ ' --host Remote host\n' +
41
+ ' --port Remote/Local port\n' +
42
+ ' --local_port Local port override\n' +
43
+ ' --help\n' +
44
+ '[Example]\n' +
45
+ ' yarn web --scheme https --host example.com --port 8080 --local_port 30000'
46
46
) ;
47
47
process . exit ( 0 ) ;
48
48
}
@@ -84,8 +84,9 @@ const server = http.createServer((req, res) => {
84
84
} ) ;
85
85
86
86
server . listen ( LOCAL_PORT , ( ) => {
87
- if ( LOCAL_PORT !== PORT )
87
+ if ( LOCAL_PORT !== PORT ) {
88
88
console . log ( `Operating location at http://0.0.0.0:${ LOCAL_PORT } ` ) ;
89
+ }
89
90
console . log ( `Web UI available at ${ SCHEME } ://${ AUTHORITY } ` ) ;
90
91
} ) ;
91
92
0 commit comments