"Extract..." refactorings not available on right side of addition/multiplication expression #61630
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
Today, you can request "Extract..." refactorings on the left side of a chain of multiplications:
Most people consider
*
to be associative (even if it's not for IEEE-754 numbers). Unfortunately we strictly allow you to refactor expressions as-parsed, so the following doesn't work:Expected: Extract constant/function work on
b * c
Actual:
The text was updated successfully, but these errors were encountered: