Skip to content

Commit 34c4570

Browse files
committed
yarn web 💄
1 parent 7021e20 commit 34c4570

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

Diff for: scripts/code-web.js

+12-11
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const EXTENSIONS_ROOT = path.join(APP_ROOT, 'extensions');
2020
const WEB_MAIN = path.join(APP_ROOT, 'src', 'vs', 'code', 'browser', 'workbench', 'workbench-dev.html');
2121

2222
const args = minimist(process.argv, {
23-
boolean:[
23+
boolean: [
2424
'no-launch',
2525
'help'
2626
],
@@ -32,17 +32,17 @@ const args = minimist(process.argv, {
3232
],
3333
});
3434

35-
if(args.help){
35+
if (args.help) {
3636
console.log(
3737
'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'
4646
);
4747
process.exit(0);
4848
}
@@ -84,8 +84,9 @@ const server = http.createServer((req, res) => {
8484
});
8585

8686
server.listen(LOCAL_PORT, () => {
87-
if(LOCAL_PORT !== PORT)
87+
if (LOCAL_PORT !== PORT) {
8888
console.log(`Operating location at http://0.0.0.0:${LOCAL_PORT}`);
89+
}
8990
console.log(`Web UI available at ${SCHEME}://${AUTHORITY}`);
9091
});
9192

0 commit comments

Comments
 (0)