Skip to content

Users hitting "Learn more link about JS/TS refactoring" by accident in Refactoring context menu #149415

Closed

Description

  • VS Code Version: 1.67.1
  • OS Version: Windows 11

Steps to Reproduce:

  1. Place cursor on a line in TypeScript where there is no available refactoring
  2. 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.
  3. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

insiders-releasedPatch has been released in VS Code Insidersverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions