We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32822e0 commit 745998aCopy full SHA for 745998a
src/extension/common/stringUtils.ts
@@ -1,6 +1,8 @@
1
// Copyright (c) Microsoft Corporation. All rights reserved.
2
// Licensed under the MIT License.
3
4
+import { getOSType, OSType } from './platform';
5
+
6
/**
7
* Replaces all instances of a substring with a new substring.
8
*/
@@ -61,5 +63,9 @@ export function fileToCommandArgumentForPythonExt(source: string): string {
61
63
62
64
let result = toCommandArgumentForPythonExt(source);
65
- return result.replace(/\\/g, '/');
66
+ if (getOSType() !== OSType.Windows) {
67
+ result = result.replace(/\\/g, '/');
68
+ }
69
70
+ return result;
71
}
0 commit comments