You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This changes the behaviour of pressing enter after a raise statement
which involves an explicit value so that the cursor position is no
longer outdented. Previosly this worked well for things like:
raise
raise e
but less well for things like:
raise Exception(|)
which wouuld end up like:
raise Exception(
|)
With this change applied the latter case will end up like:
raise Exception(
|
)
which matches the behaviour of 'return'. The first case (without
a value) is unaffected, though the case of:
raise e
will, just like 'return' now require the user to explicitly
outdent after pressing enter. It is expected that this is an
accpetable trade-off, especially as it is alrady the case for
return statements.
Fixesmicrosoft#10583.
0 commit comments