Skip to content

Add "Delete Build Directory and Reconfigure" commands - #4826

Merged
Omotola merged 8 commits into
mainfrom
copilot/feature-delete-all-and-reconfigure
Mar 23, 2026
Merged

Omotola merged 8 commits into
mainfrom
copilot/feature-delete-all-and-reconfigure

Conversation

Copilot AI commented Mar 18, 2026 •

Copy link
Copy Markdown
Contributor
Original prompt

This section details on the original issue you should resolve

<issue_title>[Feature] add a “delete all and reconfigure” selection to avoid cmake-tool get strange error</issue_title>
<issue_description>### Request Overview

When using CMake, if some configuration (such as the contents of CMakeLists.txt) changes and you don't clear build, CMake may reuse the old cache, causing strange errors or build failures. Remove all the old build files in build folder can make CMake regenerate the project from a clean state.

why "Delete Cache and Reconfigure" not enough?

When you click “Delete Cache and Reconfigure”, CMake Tools usually just deletes: CMakeCache.txt, possibly CMakeFiles folder and maybe a few other files; But when you do: rm -rf build/*, you are removing everything, this will allow CMake to restart the build from a completely clean state

Additional Information

related issue: #4474 </issue_description>

Comments on the Issue (you are Copilot in this section)


💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

Copilot AI and others added 3 commits March 18, 2026 00:41
Add new commands that remove the entire build directory before
reconfiguring, providing a completely clean state beyond what
"Delete Cache and Reconfigure" offers.

New commands:
- cmake.fullCleanConfigure
- cmake.fullCleanConfigureAll
- cmake.fullCleanConfigureAndBuild
- cmake.fullCleanConfigureAndBuildAll
- cmake.outline.fullCleanConfigureAll
- cmake.outline.fullCleanConfigureAndBuildAll

Resolves #4833

Co-authored-by: Omotola <8052624+Omotola@users.noreply.github.com>
Co-authored-by: Omotola <8052624+Omotola@users.noreply.github.com>
Co-authored-by: Omotola <8052624+Omotola@users.noreply.github.com>
Copilot AI changed the title [WIP] [Feature] Add delete all and reconfigure option for CMake Mar 18, 2026
Copilot AI requested a review from Omotola March 18, 2026 00:47
@Omotola

Omotola commented Mar 20, 2026

Copy link
Copy Markdown
Contributor

validated locally

@Omotola
Omotola marked this pull request as ready for review March 20, 2026 21:50
Copilot AI requested a review from Omotola March 20, 2026 23:46
@Omotola
Omotola merged commit 140a888 into main Mar 23, 2026
4 checks passed
@Omotola
Omotola deleted the copilot/feature-delete-all-and-reconfigure branch March 23, 2026 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants