phptools-docs
phptools-docs copied to clipboard
Autocomplete for variable deletes code that follows that is not selected, for no reason
This is an absolute disaster.
I have this code:
My cursor, as can be seen, is right before the is_array() call in the first if condition.
I want to add another condition right before that, that is $fetchImageInfo &&, which is a variable that exists.
So, I start typing the variable and I get the expected autocomplete suggestion:
Then I hit Enter to accept it, and KABOOM!!
That DELETES the is_array that came after.
I think this is a regression
I think this is handled by VSCode itself. It sees the entire character sequence as a single word, so it replaces it.
I just tried an Extension bisect and I can't reproduce when the DEVSENSE extension is disabled.
interesting :) let's see why we do that ... I guess we just replace the entire token on position (for legacy reasons)
Friendly reminder that this issue still exists
thank you @php4fan - getting there :)
fixed! will be in the next update