Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
d'oh, fix compare logic microsoft/vscode#97881
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed May 15, 2020
1 parent a23a123 commit f63eaed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Reference Search View",
"icon": "media/icon.png",
"description": "Reference Search results as separate, stable view in the sidebar",
"version": "0.0.56",
"version": "0.0.57",
"publisher": "ms-vscode",
"engines": {
"vscode": "^1.40.0"
Expand Down
4 changes: 2 additions & 2 deletions src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ export class ReferencesModel {
let bStr = b.with({ fragment: '' }).toString();
if (aStr < bStr) {
return -1;
} else if (aStr < bStr) {
} else if (aStr > bStr) {
return 1;
}
return 0;
Expand All @@ -276,7 +276,7 @@ export class ReferencesModel {
private static _compareLocations(a: vscode.Location, b: vscode.Location): number {
if (a.uri.toString() < b.uri.toString()) {
return -1;
} else if (a.uri.toString() < b.uri.toString()) {
} else if (a.uri.toString() > b.uri.toString()) {
return 1;
} else if (a.range.start.isBefore(b.range.start)) {
return -1;
Expand Down

0 comments on commit f63eaed

Please sign in to comment.