From ff27061702fccb8d895639338c9a4b7c13ec476f Mon Sep 17 00:00:00 2001 From: Sylvain Pasche Date: Fri, 6 Aug 2021 23:29:38 +0200 Subject: [PATCH] Copy URI authority from base when splitting terminals, fixes #127811 --- src/vs/workbench/contrib/terminal/browser/terminalService.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vs/workbench/contrib/terminal/browser/terminalService.ts b/src/vs/workbench/contrib/terminal/browser/terminalService.ts index da4f4b526a196..b4192d7165e49 100644 --- a/src/vs/workbench/contrib/terminal/browser/terminalService.ts +++ b/src/vs/workbench/contrib/terminal/browser/terminalService.ts @@ -1141,6 +1141,7 @@ export class TerminalService implements ITerminalService { if (options?.instanceToSplit && typeof shellLaunchConfig.cwd !== 'object' && typeof options.instanceToSplit.shellLaunchConfig.cwd === 'object') { shellLaunchConfig.cwd = URI.from({ scheme: options.instanceToSplit.shellLaunchConfig.cwd.scheme, + authority: options.instanceToSplit.shellLaunchConfig.cwd.authority, path: shellLaunchConfig.cwd || options.instanceToSplit.shellLaunchConfig.cwd.path }); }