add editorWebUrl to tunnelApplicationConfig (#166872)

* add editorWebUrl to tunnelApplicationConfig

* bump distro & compile 'build'
This commit is contained in:
Martin Aeschlimann
2022-11-21 18:37:26 +01:00
committed by GitHub
parent 857debc96b
commit 0131be02f4
7 changed files with 13 additions and 18 deletions
+2 -1
View File
@@ -57,7 +57,8 @@ export async function main(argv: string[]): Promise<any> {
return new Promise((resolve, reject) => {
let tunnelProcess;
if (process.env['VSCODE_DEV']) {
tunnelProcess = spawn('cargo', ['run', '--', 'tunnel', ...argv.slice(5)], { cwd: join(getAppRoot(), 'cli') });
const env = { ...process.env, VSCODE_CLI_EDITOR_WEB_URL: product.tunnelApplicationConfig?.editorWebUrl };
tunnelProcess = spawn('cargo', ['run', '--', 'tunnel', ...argv.slice(5)], { cwd: join(getAppRoot(), 'cli'), env });
} else {
const appPath = process.platform === 'darwin'
// ./Contents/MacOS/Electron => ./Contents/Resources/app/bin/code-tunnel-insiders