feat: forbid signature help in some cases (#1742)

* feat: forbid signature help in some cases

* test: update snapshot
This commit is contained in:
Myriad-Dreamin 2025-05-06 14:55:24 +08:00 committed by GitHub
parent 29893aa15f
commit 4ded5a624a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 173 additions and 56 deletions

View file

@ -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));
})
});
}
}