Add "Delete Cache, Reconfigure and Build" command #4723
+71
−0
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 change addresses item #4294
This changes visible behavior
The following changes are proposed:
cleanConfigureAndBuildmethod toCMakeProjectthat chainscleanConfigure()+build(), short-circuiting on configure failure (mirrorscleanRebuild()pattern)cleanConfigureAndBuild/cleanConfigureAndBuildAllcommands toExtensionManagerwith telemetry and build preset validationpackage.json(command palette, outline view title, CMakeLists.txt context menus, explorer context)The purpose of this change
Users who need to delete cache and reconfigure due to a broken build folder currently must wait for reconfiguration to complete, then manually trigger a build. This adds a single command that chains both operations so the user can walk away and return when everything is done.
Other Notes/Information
Core logic in
cmakeProject.ts:The
cmake.outline.cleanConfigureAndBuildcommand is defined but not explicitly registered inextension.ts— this is consistent with existing outline commands likecmake.outline.cleanRebuildandcmake.outline.cleanConfigurewhich follow the same pattern (hidden via"when": "never"in command palette).Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
40vvsblobprodwus2135.vsblob.vsassets.io/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /usr/local/bin/yarn install --frozen-lockfile(dns block)78kvsblobprodwus2152.vsblob.vsassets.io/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /usr/local/bin/yarn install --frozen-lockfile(dns block)b53vsblobprodwus2154.vsblob.vsassets.io/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /usr/local/bin/yarn install --frozen-lockfile(dns block)km4vsblobprodwus2183.vsblob.vsassets.io/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /usr/local/bin/yarn install --frozen-lockfile(dns block)l7ivsblobprodwus2133.vsblob.vsassets.io/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /usr/local/bin/yarn install --frozen-lockfile(dns block)v41vsblobprodwus2175.vsblob.vsassets.io/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /usr/local/bin/yarn install --frozen-lockfile(dns block)vd2vsblobprodwus2150.vsblob.vsassets.io/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /usr/local/bin/yarn install --frozen-lockfile(dns block)wztvsblobprodwus2155.vsblob.vsassets.io/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /usr/local/bin/yarn install --frozen-lockfile(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.