"Extract to function" refactor is not suggested if selection contains if
statement (conditional return)
#39640
Labels
Milestone
if
statement (conditional return)
#39640
TypeScript Version: 3.9.2
Search Terms:
Code
Select the whole
if
statement, including theelse
, like this:Expected behavior:
The "extract to function" refactor should be suggested. When the refactor is used, it should produce code that looks like this:
Actual behavior:
The "extract to function" refactor is not suggested (testing in VS Code).
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered: