mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-07-19 10:45:02 +00:00
feat: forbid signature help in some cases (#1742)
* feat: forbid signature help in some cases * test: update snapshot
This commit is contained in:
parent
29893aa15f
commit
4ded5a624a
25 changed files with 173 additions and 56 deletions
|
@ -141,14 +141,16 @@ mod tests {
|
|||
fn test() {
|
||||
snapshot_testing("signature_help", &|ctx, path| {
|
||||
let source = ctx.source_by_path(&path).unwrap();
|
||||
let (position, anno) = make_pos_annoation(&source);
|
||||
|
||||
let request = SignatureHelpRequest {
|
||||
path: path.clone(),
|
||||
position: find_test_position(&source),
|
||||
};
|
||||
let request = SignatureHelpRequest { path, position };
|
||||
|
||||
let result = request.request(ctx);
|
||||
assert_snapshot!(JsonRepr::new_redacted(result, &REDACT_LOC));
|
||||
with_settings!({
|
||||
description => format!("signature help on {anno}"),
|
||||
}, {
|
||||
assert_snapshot!(JsonRepr::new_redacted(result, &REDACT_LOC));
|
||||
})
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue