mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-15 07:28:05 +00:00
eng - reduce some unused deps (#231221)
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
const cp = require('child_process');
|
||||
const path = require('path');
|
||||
const opn = require('opn');
|
||||
const open = require('open');
|
||||
const minimist = require('minimist');
|
||||
|
||||
async function main() {
|
||||
@@ -33,7 +33,7 @@ async function main() {
|
||||
const serverArgs = process.argv.slice(2).filter(v => v !== '--launch');
|
||||
const addr = await startServer(serverArgs);
|
||||
if (args['launch']) {
|
||||
opn(addr);
|
||||
open(addr);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ const cp = require('child_process');
|
||||
const minimist = require('minimist');
|
||||
const fancyLog = require('fancy-log');
|
||||
const ansiColors = require('ansi-colors');
|
||||
const opn = require('opn');
|
||||
const open = require('open');
|
||||
const https = require('https');
|
||||
|
||||
const APP_ROOT = path.join(__dirname, '..');
|
||||
@@ -80,7 +80,7 @@ async function main() {
|
||||
|
||||
startServer(serverArgs);
|
||||
if (openSystemBrowser) {
|
||||
opn(`http://${HOST}:${PORT}/`);
|
||||
open(`http://${HOST}:${PORT}/`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user