Auto-completion acting weird


#1

I don’t know whether this is specific to javascript or not, but I’m seeing this behavior:

console.lo

TAB or ENTER

console.console.log();

I would expect it to auto-complete to:

console.log();

Am I doing something wrong?


#2

That’s probably true.
The standard snippet assumes that entering 'lo' on its own is expected to expand to console.log().
However, this could probably check first whether the snippet is already partly there.


#3

I guess I need to modify my behavior and start typing “log” instead then, but yeah, it seems like a good idea to check if the user has already started filling out what you’re trying to help out by auto-completing.