Skip to content

Commit 50d33cb

Browse files
authored
Use less restric rules for autoActivation
When Auto-activation is enabled in the TextEditor, this should make so that the auto-completion popup appears mid-word after the default 300ms delay
1 parent 11c54a8 commit 50d33cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/scijava/plugins/scripteditor/jython/JythonAutocompletionProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public JythonAutocompletionProvider(final RSyntaxTextArea text_area, final Impor
5757
this.text_area = text_area;
5858
this.formatter = formatter;
5959
this.setParameterizedCompletionParams('(', ", ", ')'); // for methods and functions
60+
setAutoActivationRules(true, "."); // when using auto-activation, make it so that it occurs after any letter or '.'
6061
new Thread(ClassUtil::ensureCache).start();
6162
}
6263

0 commit comments

Comments
 (0)