Closed RishonDev closed 1 year ago
Use DefaultCompletionProvider provider = new DefaultCompletionProvider(); provider.setAutoActivationRules(true, "."); instead, the keylistener is redundant;
Hey, I know it's 5 months latter, but I ran into one of the problems you had and found the cause. Specifically,
The auto-completion does not replace the typed-out text
That's because the <
is not a valid char to the DefaultCompletionProvider. You can fix this by extending the class and overriding the method:
DefaultCompletionProvider provider = new DefaultCompletionProvider() {
@Override
protected boolean isValidChar(char ch) {
return super.isValidChar(ch) || /*Extra chars here*/;
}
};
Looks like some kind folks havae pointed out the ways to address these issues :) The CompletionProvider
should handle showing and hiding the completion choices list, as well as defines which characters are part of an "identifier" to code-complete. You'll find a few examples of this approach in the sister project RSTALanguageSupport (exmaple for Perl).
There are two bugs (In HTML specifically):
(After) (Lost focus so the auto-complete closed) Bug 2 : (Before)
(After)
(Just in case if the second one is not a bug I have pasted the code below.)