Incorrect Formatting on if (a) try {} finally {}
#60887
Labels
Bug
A bug in TypeScript
Domain: Formatter
The issue relates to the built-in formatter
Help Wanted
You can do this
Milestone
π Search Terms
format, formatter, finally
π Version & Regression Information
β― Playground Link
Playground Link
π» Code
Click "Format Document" from the context menu or via keyboard shortcut (opt+shift+f).
π Actual behavior
The format result is
π Expected behavior
Do not add indentation to the finally block.
Additional information about the issue
Note that
if (a) try {} catch {}
works fine. Maybe there're something related. Playground LinkRelated #3817
The text was updated successfully, but these errors were encountered: