Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix signature help for overloaded methods #3073

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

hopehadfield
Copy link
Contributor

Fixes #3052

Signature help now displays all overloaded methods, though may now display some extra inapplicable methods in select cases. This also fixes an issue where signature help is not displayed for overloaded methods with no parameters, as the completion now places the cursor within the round brackets.

@hopehadfield hopehadfield force-pushed the 3052-signature-help branch 2 times, most recently from 8dc6fd8 to ce2169c Compare March 1, 2024 18:13
@hopehadfield
Copy link
Contributor Author

Retest this please.

@jdneo
Copy link
Contributor

jdneo commented Mar 5, 2024

It works for the case mentioned in #3052. Could you please add test cases as well?

Copy link
Contributor

@rgrunber rgrunber left a comment

Choose a reason for hiding this comment

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

Overall, looks fine. Just had to go remember what this piece of code was accomplishing, and I think there's a typo here.

Basically when items get collapsed we should always trigger signature help by ensuring the cursor is placed within the parameter area, and not outside. The replacement string containing the correct placeholder will do that.

@hopehadfield hopehadfield force-pushed the 3052-signature-help branch from 15b4f1e to e1f12d1 Compare March 6, 2024 19:21
@rgrunber rgrunber merged commit b33ad90 into eclipse-jdtls:master Mar 7, 2024
6 of 7 checks passed
@hopehadfield hopehadfield deleted the 3052-signature-help branch April 23, 2024 15:51
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.

Signature help does not display all overloaded methods
3 participants