Skip to content

Test: refactoring documentation contribution point proposal #89388

Closed

Description

@mjbvz

Test for #86788

Complexity: 4

background
The proposed documentation.refactoring contribution point allows extensions to contribute a command that lets users learn more about refactoring

  "contributes": {
    "documentation": {
      "refactoring": [
        {
          "title": "%documentation.refactoring.title%",
          "when": "typescript.isManagedFile",
          "command": "_typescript.learnMoreAboutRefactorings"
        }
      ]
    }

This is rendered at the bottom of the completion list

Testing
Using the code action sample extension, try using creating some documentation.refactoring contributions:

  • Can you get the contribution to show up as expected?
  • Does the when clause work?
  • Make sure that the documentation only shows up when you would expect:
    • It should only show in the lightbulb menu if a refactoring is returned
    • It should always show up in the refactor menu
    • But it should never block keybindings for code actions

Activity

  1. joaomoreno commented on Jan 28, 2020

    @joaomoreno
    Contributor

    I feel it's rather weird that a when clause is necessary. Usually when clauses are optional. Wouldn't a language selector be more appropriate?

  2. joaomoreno commented on Jan 28, 2020

    @joaomoreno
    Contributor

    I'm not really sure what But it should never block keybindings for code actions means.

  3. locked and limited conversation to collaborators on Mar 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions