提交 a87e8280 编写于 作者: D Daniel Imms

Use fsPath over path for terminal cwd

上级 477e9184
......@@ -136,14 +136,14 @@ export function getCwd(shell: IShellLaunchConfig, root: Uri, configHelper: ITerm
if (paths.isAbsolute(customCwd)) {
cwd = customCwd;
} 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 (!cwd) {
cwd = root ? root.path : os.homedir();
cwd = root ? root.fsPath : os.homedir();
}
return _sanitizeCwd(cwd);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册