Skip to content

✨ Add Test CodeLens navigation#4

Closed
savannahostrowski wants to merge 50 commits intomainfrom
code-lens
Closed

✨ Add Test CodeLens navigation#4
savannahostrowski wants to merge 50 commits intomainfrom
code-lens

Conversation

@savannahostrowski
Copy link
Member

@savannahostrowski savannahostrowski commented Jan 13, 2026

Needs #3

Closes https://github.com/fastapilabs/cloud/issues/2420

This PR:

  • Adds CodeLens navigation above test client calls (e.g., client.get("/items")). Clicking on the lens navigates to the route definition with back-button history preserved. Single matches navigate directly; multiple matches show a peek selection.
  • Adds fastapi.showTestCodeLenses setting to disable CodeLens (default: enabled)
  • Refactors command registration: uses openLocation for tree view navigation, goToDefinition for CodeLens navigation (where source position matters for history), and keeps goToRouter for router context menu

Review order:

@savannahostrowski savannahostrowski changed the base branch from main to file-watching January 13, 2026 23:47
@savannahostrowski savannahostrowski changed the base branch from file-watching to main January 14, 2026 18:36
@savannahostrowski savannahostrowski deleted the code-lens branch March 6, 2026 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant