In my editor, there a few tokens that have spaces in them that I want to match against. Here are some example valid tokens:
field_name SELECT SORT BY
For the first two, I have a
validFor pattern than looks something like
/[a-z_]+/i. For the few cases that the tokens have a space in them, I have a regex that looks like this:
I’ve tested the regex and confirmed that it matches
sort by, but there seems to be an event that watches
space that prevents the
validFor from being read and it closes the completion window. I have also tried to pass a dummy function into
validFor just to test this (
() => true), but that has the same behavior.
I’ve looked through the docs but I didn’t see anything that would allow me to change this behavior. Am I missing something?