Allow to configure machine name for tunnel (#163812)

* Allow to configure machine name for tunnel

* fix tests

* fix tests
This commit is contained in:
Martin Aeschlimann
2022-10-18 17:36:11 +02:00
committed by GitHub
parent 38b89a1b96
commit 2bfe9bcd6f
7 changed files with 118 additions and 33 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ export async function main(argv: string[]): Promise<any> {
return new Promise((resolve, reject) => {
let tunnelProcess;
if (process.env['VSCODE_DEV']) {
tunnelProcess = spawn('cargo', ['run', '--bin', 'code-tunnel', ...argv.slice(5)], { cwd: join(getAppRoot(), 'cli') });
tunnelProcess = spawn('cargo', ['run', '--bin', 'code-tunnel', '--', ...argv.slice(5)], { cwd: join(getAppRoot(), 'cli') });
} else {
const tunnelCommand = join(dirname(process.execPath), 'bin', `${product.tunnelApplicationName}${isWindows ? '.exe' : ''}`);
const tunnelArgs = argv.slice(3);