From deef0f54607de36ffbbb49a06e0b1bf5e9982ecb Mon Sep 17 00:00:00 2001 From: Thanh Nguyen <74597207+ThanhNguyxn@users.noreply.github.com> Date: Thu, 15 Jan 2026 03:15:20 +0700 Subject: [PATCH] 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 Co-authored-by: Robo --- extensions/tunnel-forwarding/src/extension.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extensions/tunnel-forwarding/src/extension.ts b/extensions/tunnel-forwarding/src/extension.ts index 299c728719f..4752167e6f2 100644 --- a/extensions/tunnel-forwarding/src/extension.ts +++ b/extensions/tunnel-forwarding/src/extension.ts @@ -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' : '');