Description
openedon May 13, 2022
- VS Code Version: 1.67.1
- OS Version: Windows 11
Steps to Reproduce:
- Place cursor on a line in TypeScript where there is no available refactoring
- Ctrl+Shift+R to bring up the Refactoring context menu.
There should be no available refactorings and only the "Learn more about JS/TS refactoring" entry is enabled. - Hit Enter and you are taken to https://code.visualstudio.com/docs/languages/typescript#_refactoring via LearnMoreAboutRefactoringsCommand
Some users are reporting in doc feedback comments that they are going to the website by accident due to the Learn more item being the only command enabled.
Some comments:
"Why does this page come up whenever I try to refactor anything in VS Code?"
"This keeps coming up whenever I'm trying to use refactor."
The Learn more entry was added for discoverability to help users understand how generally refactoring works and what TS refactors are available.
One option would be to show the "Learn more" entry until the user selects it once or some number of times and then remove it from the list.
Or after some number of hits, prompt the user to ask if they'd like to keep the entry in the Refactors list and call out a setting if they change their mind later.