Skip to content

Conversation

@Lucccyo
Copy link
Contributor

@Lucccyo Lucccyo commented Nov 17, 2025

Merlin displays a signature-help response on every part of a function call, including the function name.
However, signature-help should appear only on function parameters.
The signature-help command should not return an answer for function names.

@Lucccyo Lucccyo marked this pull request as ready for review November 20, 2025 14:47
@PizieDust
Copy link
Contributor

Thank you for the PR

Copy link
Contributor

@PizieDust PizieDust left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this work @Lucccyo

@pitag-ha pitag-ha requested a review from voodoos November 26, 2025 14:18
Copy link
Collaborator

@voodoos voodoos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Lucccyo. Looks quite good, just a suggestion about a more generic api to compare the Msource's positions.

active_param = Option.value ~default:0 s.active_param;
active_signature = 0
}
if (Msource.compare_logical (Msource.get_logical source position) (Msource.get_logical source s.function_position)) < 0 then None
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line being too long hints that the api for Msource.compare_logical is not great.
Let's have a Msource.compare_position : Msource.position -> Msource.position -> int instead.

You can also put that as a guard in the pattern matching, I think it will make the intent clearer.

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.

3 participants