Skip to content

Test ctrl/cmd+clicking of inline hints #141166

@jrieken

Description

@jrieken

Refs: #129528

Complexity: 4

Create Issue


For inline hints we added the ability to have them be composed out of different parts and for those parts to be interactive, e.g they can be link and can have a context menu.

This test plan item requires to author an extension and this sample should help you get started: https://github.com/jrieken/test-inlayhints. For markdown files, this sample puts foo in front of "bar" and puts bar after "foo". It also finds all "definitions" of the foo-word.

Screen Shot 2022-01-21 at 18 04 39


  • make yourself familiar with the sample
  • make your self familiar with the inlay hint API proposal, esp with InlayHintLabelPart
  • tweak the sample, e.g by adding a command to a label part, add tooltips to label parts, etc
  • test that tooltips for inlay hints and label parts show (both can have tooltips)
  • test that hints with an attached source location invoke go to definition as link (ctrl/cmd+click)
  • test that hints with an attached source location have a context menu
  • test that hints with an attached source location show the language specific hover for the location
  • test that hints with an attached command have a link gesture
  • test that hints with an attached command and source location behave properly

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions