mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-07 07:16:41 +01:00
fix: correct tunnel command path resolution for Windows Insiders (#282431)
* fix: correct tunnel command path for Windows Insiders On Windows Insiders, the bin folder is at root level while appRoot points to resources/app inside the versioned folder. Changed path resolution to use '../../../bin' (3 levels up) for Windows Insiders specifically, while keeping '../../bin' for other platforms. - macOS: 'bin' (directly under appRoot) - Windows Insiders: '../../../bin' (resources/app -> root/bin) - Other platforms: '../../bin' Fixes #282425 * chore: apply feedback --------- Co-authored-by: ThanhNguyxn <thanhnguyxn@users.noreply.github.com> Co-authored-by: Robo <hop2deep@gmail.com>
This commit is contained in:
@@ -25,7 +25,11 @@ const cliPath = process.env.VSCODE_FORWARDING_IS_DEV
|
||||
? path.join(__dirname, '../../../cli/target/debug/code')
|
||||
: path.join(
|
||||
vscode.env.appRoot,
|
||||
process.platform === 'darwin' ? 'bin' : '../../bin',
|
||||
process.platform === 'darwin'
|
||||
? 'bin'
|
||||
: process.platform === 'win32' && vscode.env.appQuality === 'insider'
|
||||
? '../../../bin' // TODO: remove as part of https://github.com/microsoft/vscode/issues/282514
|
||||
: '../../bin',
|
||||
vscode.env.appQuality === 'stable' ? 'code-tunnel' : 'code-tunnel-insiders',
|
||||
) + (process.platform === 'win32' ? '.exe' : '');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user