Skip to content

Commit a94e5d9

Browse files
committed
resource.relativePath fix for windows (for microsoft#90063)
1 parent f9a544f commit a94e5d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/base/common/resources.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ export function relativePath(from: URI, to: URI, ignoreCase = hasToIgnoreCase(fr
227227
return undefined;
228228
}
229229
if (from.scheme === Schemas.file) {
230-
const relativePath = paths.relative(from.path, to.path);
230+
const relativePath = paths.relative(originalFSPath(from), originalFSPath(to));
231231
return isWindows ? extpath.toSlashes(relativePath) : relativePath;
232232
}
233233
let fromPath = from.path || '/', toPath = to.path || '/';

0 commit comments

Comments
 (0)