-
Notifications
You must be signed in to change notification settings - Fork 92
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
Context assist on type experiment #111
base: master
Are you sure you want to change the base?
Conversation
5309602
to
560e298
Compare
@mickaelistria @noopur2507 Please suggest me few reviewers to get feedback and provide your feedback as well. Adding for feedback: |
I will search and report a issue for this if one doesn't exist. |
560e298
to
4b9ce7a
Compare
I think it's https://bugs.eclipse.org/bugs/show_bug.cgi?id=101420 . I hope to look at this proposal soon. |
4b9ce7a
to
127a61e
Compare
@mickaelistria Found an issue in Windows, even though the it is configured not to show empty list, the empty list is shown in windows, but not in macos. |
The problem persists when the computations are executed asynchronously. I think when computation are fast enough the async computation is not triggered. What I observed if I don't see the progress item in the completion list, things work fine in both OS. |
If you are running I-Builds of Eclipse, you can install this change and related jface.text mods using this updatesite patch-site - https://gayanper.github.io/org.gap.eclipse.jdt.eap/p2/i-builds |
127a61e
to
82a9872
Compare
You type something in one line, and find that your input is totally wrong, so you decide to keep pressing backspace. When there are only leading whitespaces in one line, the content assist menu should not pop up, but it pops up every time you press backspace. 20220627_222944.mp4Was it possible to disable content assist when you press backspace but there are only whitespaces(or nothing) in one line? |
I think i can see how to solve this issue. Thanks for testing and catching this scenario. Did you install the changes from the update site i shared which container jface patch as well ? |
I think this behavior is by default in assist popup. But i think we can improve it. There is no point in keeping the popup after you erased your completion token. |
yes |
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.
I like the progress being made, however I believe that it shouldn't be the responsibility of the processor to decide whether to auto activate on typing. This is more a responsibility of the popup as it affects all processors in the same way.
fAutoActivateOnType= autoActivateOnType; | ||
} | ||
|
||
public final boolean isAutoActivateOnType() { |
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.
I don't see it used anywhere. Is it expected?
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.
No this is just the getter that is added to comply with bean pattern, But i think we can remove these properties since it make sense to have it in the content assist it self rather than the processors to be beneficial in other places.
82a9872
to
5f594b6
Compare
@mickaelistria check the latest patches, I have moved auto activation into jface contentassist. |
29df495
to
1e4b27d
Compare
@mickaelistria and @jjohnstn please have a look at the changes, We can try to merge this for next release (4.26) M1. |
ad06c79
to
f9f7789
Compare
f9f7789
to
d57f7f4
Compare
761e92d
to
529b36f
Compare
529b36f
to
7a58fb7
Compare
7a58fb7
to
aa024e0
Compare
The changes use the new platform.text ContentAssist mode which act of key type. Some additional attributes are added to JavaContentAssistInvocationContext to figure out if the request was made by action or on-type.
aa024e0
to
f999c9e
Compare
@mickaelistria @noopur2507 should we merge this and try this out with M1 ? |
@gayanper Sorry, I cannot decide nor act here, I'm not a committer on JDT. |
What it does
The changes enables content assist on type by
How to test
Run eclipse with
-Dorg.eclipse.jdt.assist.activateOnType=true
and typing alpha numerics should trigger the content assist, existing auto activation chars and delay is also reused.Author checklist