mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-23 12:46:43 +00:00
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:
parent
dbd1726d08
commit
61be2f78e4
17 changed files with 216 additions and 18 deletions
|
|
@ -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));
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue