Skip to content

Commit cce424c

Browse files
committed
resources: use with in comparison key
1 parent 321d171 commit cce424c

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
@@ -45,7 +45,7 @@ export function getComparisonKey(resource: URI, caseInsensitivePath = hasToIgnor
4545
if (caseInsensitivePath) {
4646
path = path.toLowerCase();
4747
}
48-
return `${resource.scheme}://${resource.authority.toLowerCase()}/${path}?${resource.query}`;
48+
return resource.with({ authority: resource.authority.toLowerCase(), path: path, fragment: null }).toString();
4949
}
5050

5151
export function hasToIgnoreCase(resource: URI | undefined): boolean {

0 commit comments

Comments
 (0)