-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Extract refactors break single-line if statements into two lines #53482
Copy link
Copy link
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: LS: Refactoringse.g. extract to constant or function, rename symbole.g. extract to constant or function, rename symbolEffort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Help WantedYou can do thisYou can do this
Milestone
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: LS: Refactoringse.g. extract to constant or function, rename symbole.g. extract to constant or function, rename symbolEffort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Help WantedYou can do thisYou can do this
Type
Fields
Give feedbackNo fields configured for issues without a type.
Bug Report
🔎 Search Terms
extract function single-line if
🕗 Version & Regression Information
💻 Code
🙁 Actual behavior
Select the arrow function callback of
filterand run “Extract to inner function.” The formatting of the function contents should be the same in the extracted function.🙂 Expected behavior