Skip to content

Commit

Permalink
resource.relativePath fix for windows (for #90063)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed Feb 6, 2020
1 parent f9a544f commit a94e5d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/base/common/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export function relativePath(from: URI, to: URI, ignoreCase = hasToIgnoreCase(fr
return undefined;
}
if (from.scheme === Schemas.file) {
const relativePath = paths.relative(from.path, to.path);
const relativePath = paths.relative(originalFSPath(from), originalFSPath(to));
return isWindows ? extpath.toSlashes(relativePath) : relativePath;
}
let fromPath = from.path || '/', toPath = to.path || '/';
Expand Down

0 comments on commit a94e5d9

Please sign in to comment.