mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-22 10:02:58 +00:00
Corrected precedence position
This commit is contained in:
parent
719631b75c
commit
77e6999536
2 changed files with 4 additions and 4 deletions
|
@ -157,7 +157,7 @@ function orderFromPath(
|
|||
const raDate = raVersion?.match(/^rust-analyzer .*\(.* (\d{4}-\d{2}-\d{2})\)$/);
|
||||
if (raDate?.length === 2) {
|
||||
const precedence = path.includes("nightly-") ? "0" : "1";
|
||||
return precedence + "-" + raDate[1];
|
||||
return "0-" + raDate[1] + "/" + precedence;
|
||||
} else {
|
||||
return "2";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue