
Hello,
I'm implementing an AI code autocompletion using both IntraText and IntraLine features.
For the IntraText I want to render the proposed code on the current line after the user code, like VS does.
Then I should handle updates based on what the user writes, if what the user is typing still matches the proposed completion I keep it and update it to remove the same characters the user typed, if not I remove the adornments.
I'm following the example "Adornments 6 - Code Reviewing", but I noticed that the TextSnapshotRange created includes the last character of the line.
So it is not possible to have the caret be in between the user code and the adornment.
So it can be either
or
I would like to have it like this
This is also particularly noticeable when a WordHighlightTagger (example "Adornments 4 - Highlight Word") is registered,
because the highlight covers also the IntraText adornment.
Can you guys help me here?
Thanks in advance.
[Modified 10 months ago]