Extract refactors break single-line if
statements into two lines
#53482
Labels
Bug
A bug in TypeScript
Domain: Refactorings
e.g. extract to constant or function, rename symbol
Effort: Moderate
Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".
Help Wanted
You can do this
Milestone
Bug Report
🔎 Search Terms
extract function single-line if
🕗 Version & Regression Information
💻 Code
🙁 Actual behavior
Select the arrow function callback of
filter
and run “Extract to inner function.” The formatting of the function contents should be the same in the extracted function.🙂 Expected behavior
The text was updated successfully, but these errors were encountered: