We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f5b967 commit de8b84eCopy full SHA for de8b84e
1 file changed
src/common/utils/pathUtils.ts
@@ -44,7 +44,8 @@ export function getResourceUri(resourcePath: string, root?: string): Uri | undef
44
return Uri.file(absolutePath);
45
}
46
47
- return Uri.file(resourcePath);
+ const pathWithForwardSlashes = resourcePath.replace(/\\/g, '/');
48
+ return Uri.file(pathWithForwardSlashes);
49
} catch (_err) {
50
return undefined;
51
0 commit comments