Skip to content

Commit 3668184

Browse files
committed
stringUtils.ts: remove call to .replace() method for paths
There is no need anymore to replace backslashes with forward slashes for paths on Windows, as the Python extension's `toCommandArgumentForPythonExt` function already handles this correctly. Signed-off-by: Francesco Giancane <me@fgiancane8.dev>
1 parent a3d46e4 commit 3668184

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/extension/common/stringUtils.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,8 @@ export function fileToCommandArgumentForPythonExt(source: string): string {
5858
if (!source) {
5959
return source;
6060
}
61-
return toCommandArgumentForPythonExt(source).replace(/\\/g, '/');
61+
62+
let result = toCommandArgumentForPythonExt(source);
63+
64+
return result;
6265
}

0 commit comments

Comments
 (0)