Skip to content

Commit de8b84e

Browse files
committed
fix: tests
1 parent 9f5b967 commit de8b84e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/common/utils/pathUtils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ export function getResourceUri(resourcePath: string, root?: string): Uri | undef
4444
return Uri.file(absolutePath);
4545
}
4646

47-
return Uri.file(resourcePath);
47+
const pathWithForwardSlashes = resourcePath.replace(/\\/g, '/');
48+
return Uri.file(pathWithForwardSlashes);
4849
} catch (_err) {
4950
return undefined;
5051
}

0 commit comments

Comments
 (0)