For our editor, I am trying to match the backspace autocomplete behaviour of vscode. In vscode, when you type an object’s name and then a dot, it will list all possible properties on that object. If you start typing it will filter that list down. And if you backspace until the dot, it will show all possible options again.
In codemirror, this only partially works. When I type an object’s name and a dot, it shows all possible properties on that object. Then I start typing and the list filters down. However, when I backspace everything I’ve typed until the dot, the autocomplete popup just closes instead of showing the full list again.
My validFor regex should return true for an empty string (validFor: /^\w*$/), so I’m not sure why the popup is closing instead of showing all the options again. Is there some other parameter I should be using to handle this?
Here is an extremely reduced example case: