Skip to content

Commit 8ca9034

Browse files
committed
Corrected precedence position
1 parent af4a59b commit 8ca9034

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/tools/rust-analyzer/editors/code/src/bootstrap.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function orderFromPath(
157157
const raDate = raVersion?.match(/^rust-analyzer .*\(.* (\d{4}-\d{2}-\d{2})\)$/);
158158
if (raDate?.length === 2) {
159159
const precedence = path.includes("nightly-") ? "0" : "1";
160-
return precedence + "-" + raDate[1];
160+
return "0-" + raDate[1] + "/" + precedence;
161161
} else {
162162
return "2";
163163
}

src/tools/rust-analyzer/editors/code/tests/unit/bootstrap.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export async function getTests(ctx: Context) {
1616
return "rust-analyzer 1.67.0-nightly (b7bc90fe 2022-11-21)";
1717
},
1818
),
19-
"0-2022-11-21",
19+
"0-2022-11-21/0",
2020
);
2121
});
2222

@@ -32,7 +32,7 @@ export async function getTests(ctx: Context) {
3232
return "rust-analyzer 1.72.1 (d5c2e9c3 2023-09-13)";
3333
},
3434
),
35-
"1-2023-09-13",
35+
"0-2023-09-13/1",
3636
);
3737
});
3838

@@ -60,7 +60,7 @@ export async function getTests(ctx: Context) {
6060
return "rust-analyzer 1.79.0 (129f3b99 2024-06-10)";
6161
},
6262
),
63-
"1-2024-06-10",
63+
"0-2024-06-10/1",
6464
);
6565
});
6666

0 commit comments

Comments
 (0)