I have a syntax editor and I'm generating and displaying a completion list. Items in this list may have prefix/suffix characters of ", but many don't.
I have display of the items and the filtering/hiding of them working fine.
However, when I commit a choice, I either get prefixsuffix, e.g. "" and the completion text not between.
I really want the editor to notice if the current "token" has the prefix or not and on commit, apply the prefix, text and suffix (as necessary), resulting in the caret being after all this content.
user types si_ but the completion item is prefix=", text=si_temp, suffix=", so on completion, "si_temp"<caret>
user types "si_t but the completion item is prefix=", text=si_temp, suffix=", so on completion, "si_temp"<caret>
Basically, I hope you can see what I'm trying to achieve. Essentially, this is a crude intellisense for an Oracle database to auto-complete table names, but where Oracle has all objects in upper-case normally, you can have database objects that have case-sensitive names if enclosed (created) within "".
Is this possible directly through the completion session, list and item setup or can you hint at ways to tweak what is committed to editor and position the caret correctly?
Any help appreciated.