Initial commit for cmake:build cmake:configure cmake:get_errors #4716
+390
−2
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.
This pull request introduces new CMake-specific tools for use with VS Code's Language Model API (Copilot), enabling build, configure, and error-reporting operations to be invoked programmatically or by AI agents. It also updates the extension's VS Code engine dependencies to the latest version and adds supporting type definitions. The most significant changes are the addition of the new Copilot tool implementations and their registration during extension activation.
Copilot Tool Integration for CMake:
Added new CMake Copilot tools:
cmake_build: Builds the CMake project, optionally for a specific target and with a clean step. [1] [2] [3]cmake_configure: Configures (or reconfigures) the CMake project, with an option to clean the cache first. [1] [2] [3]cmake_get_errors: Retrieves CMake-specific diagnostics, including configure, build, and preset errors. [1] [2] [3]Implemented tool registration logic in
src/copilot/index.tsand ensured registration occurs during extension activation insrc/extension.ts. [1] [2]Dependency and Compatibility Updates:
^1.109.0to support the new Language Model API. [1] [2]Testing Infrastructure:
languageModelAccessInformationproperty, ensuring compatibility with the latest VS Code API. [1] [2]