Skip to content

Open question: should the ambiguous-step hover let you navigate directly to a binding? #40

Description

@clrudolphi

Follow-up to #18 / #39. As of #39, hovering an ambiguous step lists every colliding step-definition binding (step type, expression, method) as plain text — matching the legacy VS extension's behavior. Navigation to one of those bindings is still a separate gesture: F12 / "Go to Step Definition" already returns all matches and (in VS Code) shows a quick-pick to choose which one to jump to. The two aren't wired together.

Open question: should hovering an ambiguous step let you navigate directly to a selected binding from the popup itself, rather than requiring a second F12 gesture?

Possible approaches, roughly in order of how well-supported they are across VS/VS Code:

  1. Leave as-is. Hover shows the list, F12 does the picker-navigation. Two gestures, but both already exist and work.
  2. Code Action at the diagnostic range — e.g. "Go to CalculatorSteps.AddNumbers" per colliding binding, offered as a quick fix / lightbulb at the ambiguous step. Well-supported, clickable in both editors, and can reuse the same binding list GoToStepDefinitionsHandler already computes.
  3. LSP DiagnosticRelatedInformation (locations attached to the diagnostic) — standard LSP mechanism, but editor support for making these clickable from the hover popup itself (as opposed to the Problems/Error List panel) is inconsistent.

Posting this as an open question to get community feedback before committing to an approach — no urgency, current behavior (hover + F12) is functional.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions