-
Notifications
You must be signed in to change notification settings - Fork 188
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
[WIP] Keep content assist popup open even if user input has no matches #2261
base: master
Are you sure you want to change the base?
Conversation
WIP, DONT MERGE Fixes: eclipse-platform#2260 Signed-off-by: Simeon Andreev <[email protected]>
There are artifacts with the current change, will have to look into those when I find time: gh2260_content_assist_artifacts.webmOpened eclipse-jdt/eclipse.jdt.ui#1643 for this. |
The proposal seems like a clear enhancement to me. I would enjoy the IDE providing this. One thing I believe is important is that if user closes the popup (hits Escape), the popup doesn't show again except if it has actual proposals. |
To be clear, #2260 is for keeping the content assist popup once opened with the usual invocation. We don't aim for #888, i.e. open the content assist popup automatically as soon as there is a proposal. So we don't change how the popup is shown, we only keep it open once shown. Though maybe I misunderstand your concern? Is there some preference that lets content assist show up automatically on typing, that I must test with? |
private static boolean shouldHideOnNoProposals(DocumentEvent event, int offset) { | ||
try { | ||
char c= event.getDocument().getChar(offset - 1); | ||
return c == ' '; |
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.
WIP, DONT MERGE
Fixes: #2260