-
Notifications
You must be signed in to change notification settings - Fork 406
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
Signature help does not display all overloaded methods #3052
Comments
Seems slightly similar to what @snjeza reported in #2014 (comment) . It's worth checking if the calls to completion return all the overloads, and if so, we should be able to figure out why signature help isn't displaying all of them. |
The problem is here : Lines 361 to 366 in 3c531fa
We get the declaring type based on the specific method that is selected (eg. for Lines 119 to 140 in 3c531fa
we do get I think we need to revisit this logic because it is definitely broken. The name comparison is there because completion invocation within the parameter "area" was always a bit buggy and we had to dismiss some odd values, but computing subtypes (in addition to supertypes) could get expensive. Do we need to compute the types at all or can we just go by the rule of "accept any method whose name matches". |
As a note the following is now an issue for signature help : Test.java
Exam.java
Main.java
It's an improvement over the issue of missing overloads. |
Ah, that might be the reason why declaring type is preserved. Let's file an issue first. |
In the case that a method contains less parameters in a superclass than the respective extended method in a subclass, all overloaded methods further extended from the superclass are not displayed in signature help. See the below example.
There should be 4 overloaded methods displayed in signature help, but instead only the methods from Vehicle and MovingObject are visible.
The text was updated successfully, but these errors were encountered: