Prevent code suggesting process cancelation on Space press

Answered

In my project I have custom code suggestion provider designed for Gherkin language.

Everything works fine until I press space - then suggestion popup disappears. I guess it is expected IntelliJ behavior. 

Of course, suggestions appear again after pressing CTRL + Space, but I wonder if there is any other way to prevent suggestion process cancelation on Space press (either programatically or in IntelliJ settings)?

0
2 comments

Hi Patryk,

Please see the last question in the com.intellij.codeInsight.completion.CompletionContributor's Javadoc:

Q: The suggestion popup hides when I type some exotic character, but I want completion to keep going, matching against the typed character.
A: See com.intellij.codeInsight.lookup.CharFilter.acceptChar(char, int, com.intellij.codeInsight.lookup.Lookup).

0

Hi Karol,

Thank you for the hint, I managed to modify suggestion behavior with custom CharFilter.

0

Please sign in to leave a comment.