Can LookupElement#getAllLookupStrings() return set without LookupElement#getLookupString()?

I saw a comment for LookupElement#getAllLookupStrings() which says:

The returned set must contain getLookupString().

but for my plugin, for example, I created a lookup element with item text: ABC, and with lookup string: Include.ABC

When user typping in editor, it will call getAllLookupStrings() to match user input, but I don't want to use "Include.ABC" to match, only "ABC" will be fine, so I override the getAllLookupStrings() method and return only "ABC", it worked, but I don't know if this will cause other problems?



Please sign in to leave a comment.