New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interactive Playground Refactoring via Extraction does not work #51575
Comments
This might be a limitation of what the TypeScript service offers for extraction. |
Then you should change the example code to work around the limitation or just throw this example out of the interactive playground? I just used the extraction feature with js yesterday. Extracting into a global function, that worked fine. |
Same issue here on OS X 1.28.1 with all extensions disabled. The Interactive Playground example states: Refactoring via Extraction Selecting typeof el === 'number' && el % 2 === 0 indeed presents the "lightbulb" and ⌘. brings context menu to Extract to inner function, global space or constant. None of the 3 options produce a result. |
This is quite important for onboarding, yes? I'm here because I experienced the same behavior described in #55101. My output:
|
This is still occurring in 1.32.3 on MacOS, but the error has slightly changed:
|
Occurs in latest insiders version also |
I'm just going to remove this section from the interactive playground. Our normal documentation covers refactoring in much more detail. I don't think fixing the interactive playground for this case would be simple and we should not highlight a feature that doesn't work properly |
Steps to Reproduce:
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: