Skip to content

Commit 1655a6a

Browse files
committed
Use paths
1 parent f9721fd commit 1655a6a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/vs/workbench/parts/terminal/node/terminalEnvironment.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
import * as os from 'os';
7-
import * as path from 'path';
7+
import * as paths from 'vs/base/common/paths';
88
import * as platform from 'vs/base/common/platform';
99
import pkg from 'vs/platform/node/package';
1010
import Uri from 'vs/base/common/uri';
@@ -134,10 +134,10 @@ export function getCwd(shell: IShellLaunchConfig, root: Uri, configHelper: ITerm
134134
// Evaluate custom cwd first
135135
const customCwd = configHelper.config.cwd;
136136
if (customCwd) {
137-
if (path.isAbsolute(customCwd)) {
137+
if (paths.isAbsolute(customCwd)) {
138138
cwd = customCwd;
139139
} else if (root) {
140-
cwd = path.normalize(path.join(root.fsPath, customCwd));
140+
cwd = paths.normalize(paths.join(root.fsPath, customCwd));
141141
}
142142
}
143143
}

0 commit comments

Comments
 (0)