Merge pull request #130291 from spasche/fix_terminal_split

Copy URI authority from base when splitting terminals, fixes #127811
This commit is contained in:
Daniel Imms 2021-08-16 07:36:04 -07:00 committed by GitHub
commit f6b8aef1eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1144,6 +1144,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
});
}