-
Notifications
You must be signed in to change notification settings - Fork 15
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
Added Qute CodeAction(s) for similar text suggestions for UnknownProperty
.
#713
Added Qute CodeAction(s) for similar text suggestions for UnknownProperty
.
#713
Conversation
8c2db68
to
4d31a21
Compare
4d31a21
to
3f4313c
Compare
When I place my cursor on a misspelled method, I get a code action failure:
|
...edhat.qute.ls/src/main/java/com/redhat/qute/services/codeactions/AbstractQuteCodeAction.java
Show resolved
Hide resolved
3f4313c
to
e4161f1
Compare
`UnknownProperty`. Part of redhat-developer#602 Signed-off-by: azerr <azerr@redhat.com>
It should be fixed. |
This also has the same bug as #723. If you take: {@java.lang.String myString}
{myString.lambda$cha$0()} It will suggest the lambda method |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd be nice to also filter the similar method suggestions based on the parameters that are currently being supplied to the method, eg.
{myString.char(1)}
It makes more sense to suggest charAt(int pos)
in this case then chars()
However, I think that we could leave this for a future PR.
...te.ls/src/main/java/com/redhat/qute/services/codeactions/QuteCodeActionForUnknownMethod.java
Show resolved
Hide resolved
I agree but this PR is about |
Oops, that's my bad. I've just been testing methods |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
Added Qute CodeAction(s) for similar text suggestions for
UnknownProperty
.Part of #602
Signed-off-by: azerr azerr@redhat.com