mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
Use fsPath over path for terminal cwd
This commit is contained in:
parent
477e918451
commit
a87e828050
|
@ -136,14 +136,14 @@ export function getCwd(shell: IShellLaunchConfig, root: Uri, configHelper: ITerm
|
||||||
if (paths.isAbsolute(customCwd)) {
|
if (paths.isAbsolute(customCwd)) {
|
||||||
cwd = customCwd;
|
cwd = customCwd;
|
||||||
} else if (root) {
|
} else if (root) {
|
||||||
cwd = paths.normalize(paths.join(root.path, customCwd));
|
cwd = paths.normalize(paths.join(root.fsPath, customCwd));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// If there was no custom cwd or it was relative with no workspace
|
// If there was no custom cwd or it was relative with no workspace
|
||||||
if (!cwd) {
|
if (!cwd) {
|
||||||
cwd = root ? root.path : os.homedir();
|
cwd = root ? root.fsPath : os.homedir();
|
||||||
}
|
}
|
||||||
|
|
||||||
return _sanitizeCwd(cwd);
|
return _sanitizeCwd(cwd);
|
||||||
|
|
Loading…
Reference in a new issue