Open LinqLover opened 2 years ago
Proposal by the way: Provide a command on every message send block decorated with "message not understood" or "unknown selector" that creates the method later as well even if the sending method has already been accepted.
Just noting for the eventual implementation: the desired behavior here would be that the cursor is modified to first hit the insert position inside of the block body, rather than selecting it. At the moment, we never hit insert positions by default when moving vertically, only text and select positions.
An alternative implementation may insert an "unknown" while creating the method, as is done with methods at the moment, but this is behavior we would prefer to migrate to better handling insert positions in the future.
As a temporary workaround you can simply press return on any block in the method and it will go and find the nearest place to insert a statement into :)
As a temporary workaround you can simply press return on any block in the method and it will go and find the nearest place to insert a statement into :)
You mean Enter, not the "return caret" ^, right? Okay :)
One open question in this regard is how it would interplay with inputNextUnknown/
Example: type in method selector, press
One idea may be to have insert positions declare that they are "tab targets" or similar, which e.g. an empty array or an empty block body may set.