feat: implement inlay hint configuration (#37)

* fix: unstable order of reference results

* feat: inlay hint configuration

* dev: test inlay hint on `lr`
This commit is contained in:
Myriad-Dreamin 2024-03-15 00:37:57 +08:00 committed by GitHub
parent dbd1726d08
commit 61be2f78e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 216 additions and 18 deletions

View file

@ -119,6 +119,14 @@ mod tests {
};
let result = request.request(world, PositionEncoding::Utf16);
// sort
let result = result.map(|mut e| {
e.sort_by(|a, b| match a.range.start.cmp(&b.range.start) {
std::cmp::Ordering::Equal => a.range.end.cmp(&b.range.end),
e => e,
});
e
});
assert_snapshot!(JsonRepr::new_redacted(result, &REDACT_LOC));
});
}