Repository navigation
feat(cmake): hybrid FileAPI ingestion, presets, target debugging, and CTest integration (#5) - #6
Merged
Merged
Conversation
…gging, and CTest integration (#5)
…r, and AST modifier
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.
Closes #5
Summary
This pull request implements comprehensive CMake modernization for C/C++ Pro, introducing a hybrid intelligence architecture that combines instant zero-binary static parsing with full ingestion of modern CMake FileAPI, CMake Presets, target debugging, CTest runner, and single-file compilation.
Key Capabilities
1. Hybrid CMake FileAPI Ingestion (
codemodel-v2).cmake/api/v1/reply/artifacts (codemodel-v2,cache-v2,toolchains-v1) when available in configured build directories..cmake/api/v1/reply/*.jsonfor seamless auto-reload when external builds run.2. CMake Presets Support (
CMakePresets.json&CMakeUserPresets.json)configurePresets,buildPresets, andtestPresetswith developer overrides inCMakeUserPresets.json.${sourceDir},${presetName},${generator},${hostSystemName},${pathListSep},${env:VAR}).c-cpp-pro.cmake.selectConfigurePresetandc-cpp-pro.cmake.selectBuildPreset.3. Target-Aware Launch & Debug Engine
c-cpp-pro.cmake.selectLaunchTarget).c-cpp-pro.cmake.debugTarget) vialldb-dap,cppvsdbg, orgdbwithout manuallaunch.jsonauthoring.c-cpp-pro.cmake.launchTarget) using nativeTerminalOptions.cwd.4. CTest Integration in Test Explorer
ctest --show-only=json-v1or parsingCTestTestfile.cmake.vscode.tests).5. Single-File Quick Compilation
c-cpp-pro.cmake.compileActiveFile.-fsyntax-only//Zs) to verify syntax and template instantiations in seconds without whole-project linkage.6. Multi-Compiler Problem Matcher
C:\...), POSIX paths, coordinates, and diagnostic error codes (e.g.C2065).vscode.DiagnosticCollection('c-cpp-pro-build').7. AST-Assisted "Add to CMake Target" Refactoring
CMakeCodeActionProvider) offering quick refactorings for untracked workspace C/C++ files.CMakeLists.txtinserting files intotarget_sources()or target declarations while preserving indentation.8. Documentation
wiki/Static-CMake-Integration.mdcovering the hybrid FileAPI architecture, presets, debugging, and command reference.Verification
npm run check-types): 0 errors.npm test): 509 passing (100% pass rate).