But not if followed by further qualifiers such as ,
foo = ["bar"]
foo[0],# Cursor goes here
Adding a space does not expand here
foo = ["bar"]
foo[0], # Cursor goes here
And of course if foo[0] is in the middle of an existing expression then do not do assignment. e.g. return foo[0] wouldn't want to expand to return foo[0] = accidentally.
It is now partially fixed. I say partially because for now, the only way I found to resolve this issue is by not adding an = if a comma exists in the line.
Allow for simple foo[0] to be assigned. e.g.
Would expand to
But not if followed by further qualifiers such as ,
Adding a space does not expand here
And of course if foo[0] is in the middle of an existing expression then do not do assignment. e.g.
return foo[0]
wouldn't want to expand toreturn foo[0] =
accidentally.