Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't outdent on enter after raise with arguments
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. Previously 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. Fixes microsoft#10583.
- Loading branch information