Add inline Test CodeLens for per-test execution in source editor#4923
Open
Omotola wants to merge 4 commits into
Open
Add inline Test CodeLens for per-test execution in source editor#4923Omotola wants to merge 4 commits into
Omotola wants to merge 4 commits into
Conversation
Add void operator to fire-and-forget showErrorMessage calls in runTestFromCodeLens and debugTestFromCodeLens to satisfy the @typescript-eslint/no-floating-promises rule. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
hanniavalera
approved these changes
May 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Implements inline "Run" and "Debug" CodeLens buttons directly in C++ source files, enabling users to execute individual tests from the editor gutter without running all tests. Resolves #4451.
Changes
src/ui/testCodeLensProvider.ts— Provides CodeLens UI for test locationssrc/ctest.ts— Improved test source location resolution with 3-tier priority:src/extension.ts— Wired CodeLens provider and per-test command handlerspackage.nls.json— Added UI strings for CodeLens labelsKey Improvements
TEST_CASE(),SCENARIO(),TEMPLATE_TEST_CASE()macros with raw string literals (R"...")[...]cmake.runTestFromCodeLensandcmake.debugTestFromCodeLensroute to single test instead of all testsTesting
Validation
Notes
cmake.testExplorerIntegrationEnabledsetting