Skip to content

Commit

Permalink
fix: kw-arg completion
Browse files Browse the repository at this point in the history
  • Loading branch information
mtshiba committed Jan 29, 2025
1 parent d5be4b8 commit 29840c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/els/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -617,8 +617,8 @@ impl<Checker: BuildRunnable, Parser: Parsable> Server<Checker, Parser> {
.get_min_expr(&uri, pos, offset)
.and_then(|(token, expr)| match expr {
Expr::Call(call) => {
let sig_t = call.obj.t();
result.extend(self.kw_arg_completion(&sig_t, &mod_ctx.context));
let sig_t = call.signature_t().unwrap();
result.extend(self.kw_arg_completion(sig_t, &mod_ctx.context));
let nth = self.nth(&uri, &call, pos);
let additional = if matches!(token.kind, Comma) { 1 } else { 0 };
let nth = nth + additional;
Expand Down

0 comments on commit 29840c9

Please sign in to comment.