mirror of
https://github.com/Microsoft/vscode
synced 2024-10-12 06:17:18 +00:00
always set connection-token
This commit is contained in:
parent
0e771ea750
commit
3aeec48751
|
@ -40,7 +40,7 @@ const HOST = args['host'] ?? 'localhost';
|
|||
const PORT = args['port'] ?? '9888';
|
||||
const TOKEN = args['connection-token'] ?? String(crypto.randomInt(0xffffffff));
|
||||
|
||||
if (args['launch'] && args['connection-token'] === undefined && args['connection-token-file'] === undefined && !args['without-connection-token']) {
|
||||
if (args['connection-token'] === undefined && args['connection-token-file'] === undefined && !args['without-connection-token']) {
|
||||
serverArgs.push('--connection-token', TOKEN);
|
||||
}
|
||||
if (args['host'] === undefined) {
|
||||
|
|
Loading…
Reference in a new issue