Skip to content

testing.toggleInlineCoverage action is available when it shouldn't be #259459

@smcenlly

Description

@smcenlly

Does this issue occur when all extensions are disabled?: No - related to VS Code API for extensions that create Test Runs

Version: 1.103.0-insider (Universal)
Commit: 8c0b3c1
Date: 2025-07-31T18:43:19.777Z
Electron: 37.2.3
ElectronBuildId: 12035395
Chromium: 138.0.7204.100
Node.js: 22.17.0
V8: 13.8.500258-electron.0
OS: Darwin arm64 24.5.0

We programmatically use the VS Code API to createTestRun and we create Test Runs without a TestRunProfile. As per the docs:

extensions may programmatically create requests not associated with any profile

Our extension also sets file coverage for the test run with the addCoverage method.

In the editor/title, we see the testing.toggleInlineCoverage action appear when it does nothing. The VS Code API to provide the coverage for this action is surfaced via the TestRunProfile, which is undefined in our case.

Unless I'm missing something, it seems that the action should be hidden in our case, and this is a bug?

Metadata

Metadata

Assignees

Labels

info-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions