Skip to content

Commit 3009f76

Browse files
committed
Fix tests
1 parent fbc454d commit 3009f76

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/common/utils/pathUtils.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function getComparisonKey(uri: Uri): string {
5858
}
5959

6060
export function normalizePath(fsPath: string): string {
61-
const resolvedPath = path.resolve(fsPath);
61+
const resolvedPath = path.resolve(fsPath).replace(/\\/g, '/');
6262
return isWindows() ? resolvedPath.toLowerCase() : resolvedPath;
6363
}
6464

@@ -68,9 +68,8 @@ export function getResourceUri(resourcePath: string, root?: string): Uri | undef
6868
return undefined;
6969
}
7070

71-
const normalizedPath = normalizePath(resourcePath);
72-
if (normalizedPath.includes('://')) {
73-
return Uri.parse(normalizedPath);
71+
if (resourcePath.includes('://')) {
72+
return Uri.parse(resourcePath);
7473
}
7574

7675
if (!path.isAbsolute(resourcePath) && root) {

0 commit comments

Comments
 (0)