But not if followed by further qualifiers such as ,
foo = {}
foo["bar"],# Cursor goes here
Adding a space does not expand here
foo = {}
foo["bar"], =# Cursor goes here
And of course if foo["bar"] is in the middle of an existing expression then do not do assignment. e.g. return foo["bar"] wouldn't want to expand to return foo["bar"] = 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["bar"] to be mutated. 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["bar"] is in the middle of an existing expression then do not do assignment. e.g.
return foo["bar"]
wouldn't want to expand toreturn foo["bar"] =
accidentally.