Skip to content

Run/Debug code lenses trigger discovery of all tests #5929

@FMorschel

Description

@FMorschel

Describe the bug
Clicking the Run or Debug code lenses on an SDK test_reflective_loader test (even after having run the file) triggers discovery of all tests. Similar to #5879.

To Reproduce
Steps to reproduce the behavior:

  1. Open pkg/analysis_server/test/src/services/correction/fix/add_static_test.dart in Dart SDK
  2. Run the file with F5
  3. Click on Debug or Run code lenses.

Expected behavior
For the test file to run without having to discover all tests.

Please complete the following information:

Workspace Environment
Dart Code extension: 3.129.20260224
Flutter extension: 3.129.20260202 (activated)

App: Visual Studio Code
App Host: desktop
Version: win 1.109.5

Workspace type: Dart (LSP) (Multiroot)
Workspace name: sdk (Workspace)

Dart (3.12.0-edge.265b75c74e46e1a6a1543f261633d92e264082e1): C:\Users\felip_0vh5fa6\dart
Flutter (3.38.7): C:\Users\felip_0vh5fa6\.puro\envs\stable\flutter (No device)

Output from 'dart info'

C:\Users\felip_0vh5fa6\dart\bin\dart.exe info

If providing this information as part of reporting a bug, please review the information
below to ensure it only contains things you're comfortable posting publicly.

General info

  • Dart 3.12.0-edge.265b75c74e46e1a6a1543f261633d92e264082e1 (main) (Mon Feb 23 08:49:29 2026 -0800) on "windows_x64"
  • on windows / "Windows 11 Pro" 10.0 (Build 26200)
  • locale is pt-BR

Process info

Memory CPU Elapsed time Command line
0 MB -- dart.exe
0 MB -- dart.exe
0 MB -- dart.exe
0 MB -- dart.exe
0 MB -- dart.exe
0 MB -- dart.exe
0 MB -- dart.exe
0 MB -- dartvm.exe

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions