-
Notifications
You must be signed in to change notification settings - Fork 60
Closed
Description
I have a basic autocompletion setup like this:
CompletionProvider provider = createCompletionProvider();
AutoCompletion ac = new AutoCompletion(provider);
ac.setAutoCompleteEnabled(true);
ac.setAutoActivationEnabled(true);
ac.setAutoCompleteSingleChoices(true);
ac.setAutoActivationDelay(800);
ac.install(codeEditor);private CompletionProvider createCompletionProvider() {
DefaultCompletionProvider provider = new DefaultCompletionProvider();
for(String instruction : AssemblerBefehle.getAssemblyInstructions().getMnemonics()) {
provider.addCompletion(new BasicCompletion(provider, instruction));
}
provider.setAutoActivationRules(true, null);
return provider;
}And it works fine and pops up automatically as it should, but when calling .read on the RSyntaxTextArea to open a file, it no longer automatically pops up. The suggestions will still show when pressing ctrl + space. Even calling setAutoCompleteEnabled(true), setAutoActivationEnabled(true) and setAutoActivationDelay(800) again after reading a file, the box will not pop up.
Rarely, if I immediately type a letter upon opening a file, it will actually pop up the suggestions, but only for that one time.