Skip to content

fix: offer signatures for methods with no positional arguments#144

Merged
pfitzseb merged 1 commit into
mainfrom
fix/signature-help-zero-positional
Jul 15, 2026
Merged

fix: offer signatures for methods with no positional arguments#144
pfitzseb merged 1 commit into
mainfrom
fix/signature-help-zero-positional

Conversation

@pfitzseb

Copy link
Copy Markdown
Member

Signature help filtered candidate signatures with
length(s.parameters) > arg, but parameters holds only positional parameters. At the first argument position (arg == 0) this dropped every method with zero positional parameters, so a keyword-only method like bar(; x) was skipped and a sole baz(; x) produced no popup at all.

At the first position nothing is committed yet, so keep all methods as candidates; narrowing by positional arity still applies once the cursor moves past the first argument.

Fixes julia-vscode/LanguageServer.jl#1367.

Signature help filtered candidate signatures with
`length(s.parameters) > arg`, but `parameters` holds only positional
parameters. At the first argument position (`arg == 0`) this dropped
every method with zero positional parameters, so a keyword-only method
like `bar(; x)` was skipped and a sole `baz(; x)` produced no popup at
all.

At the first position nothing is committed yet, so keep all methods as
candidates; narrowing by positional arity still applies once the cursor
moves past the first argument.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@pfitzseb pfitzseb merged commit c76e660 into main Jul 15, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parameter information skips methods with 0 (positional) arguments

1 participant