In the Monaco playground, the refactor command always says “No refactorings available”.
However, the source code to Monaco’s TypeScript services contains functions like getPossibleExtractions
and getConstantExtractionAtIndex
. So clearly the code is present in Monaco.
How do you configure Monaco to enable it?