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
{{ message }}
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
indentRange for python seems incorrect when using except blocks #1564
We support a keyboard shortcut to re-indent python
We use the indentRange command for the whole document
We support both 4 space and 2 space indentation
So it's quite common for a user to have 4 space indentation and then re-indent to 2 spaces.
This works well, but we've found some edge cases where it seems broken
See reproduction example
The edge cases we've found involve try/except
But there may be some related ones.
Activity
marijnh commentedon May 14, 2025
The code addressing #1370 was kicking in too eagerly here, causing this misbehavior. Attached patch should help.