Closed lloiser closed 5 years ago
Could you help shed some light what problem 2nd commit is trying to solve?
Was there an issue associated with this?
For some reason it always ended up adding the suggestion to the entered text.
E.g.
require('./lib/Tree')
^ cursor right before the '
I got the correct suggestion TreeView
. But using it then resulted in
require('./lib/TreeTreeView')
So my idea was to tell the autocomplete service to ignore the first entered text Tree
and replace it with the suggestion.
But to be honest I cannot reproduce it with the current published version (that do not include these fixes here). I will try again...
I have reverted the second commit, it also works without it.
replacementPrefix
the remove the text in front of the cursor before adding the suggestion text