-
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
Ignore synthetic method in Qute template #723
Comments
We should check if Qute can support lambda and if it is supported is it expected? @mkouba have you some idea about using lambda in Qute template? |
Lambdas are not supported and there's no plan to add the support so far. I think that the code completion should ignore all synthetic/bridge, void, non-public methods. |
Thanks for your info.
It should work like this. |
I think the fix should be done here Line 474 in 9b5fe02
|
It doesn't work. @rgrunber do you know how to filter those lamnda method. For instance with this method (named lambda$codePoint$1)
|
I don't see a check for synthetic methods there. Maybe just add something like |
|
Fixes redhat-developer#723 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#723 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#723 Signed-off-by: azerr <azerr@redhat.com>
Fixes #723 Signed-off-by: azerr <azerr@redhat.com>
Give the following template:
If you open completion at the
|
, there are two completion results (lambda$chars$0
, andlambda$codePoints$1
) that refer to lambdas defined inCharSequence
. When you go to apply one of these completion results, it inserts just the wordlambda
, which results in a broken Qute template.Additionally, if you type out the entire suggestion manually:
No error is reported in the file.
The text was updated successfully, but these errors were encountered: