mirror of https://github.com/astral-sh/ruff
This PR fixes bug [#879](https://github.com/astral-sh/ty/issues/879) where the signature help popup remains visible after typing the closing paren in a call expression. Co-authored-by: UnboundVariable <unbound@gmail.com>
This commit is contained in:
parent
4bc34b82ef
commit
c8c80e054e
|
|
@ -66,6 +66,10 @@ pub fn signature_help(db: &dyn Db, file: File, offset: TextSize) -> Option<Signa
|
|||
// Get the call expression at the given position.
|
||||
let (call_expr, current_arg_index) = get_call_expr(&parsed, offset)?;
|
||||
|
||||
if offset >= call_expr.end() {
|
||||
return None;
|
||||
}
|
||||
|
||||
// Get signature details from the semantic analyzer.
|
||||
let signature_details: Vec<CallSignatureDetails<'_>> =
|
||||
call_signature_details(db, file, call_expr);
|
||||
|
|
|
|||
Loading…
Reference in New Issue