Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 12, 2026

This change addresses item #4294

This changes visible behavior

The following changes are proposed:

  • Add cleanConfigureAndBuild method to CMakeProject that chains cleanConfigure() + build(), short-circuiting on configure failure (mirrors cleanRebuild() pattern)
  • Add cleanConfigureAndBuild / cleanConfigureAndBuildAll commands to ExtensionManager with telemetry and build preset validation
  • Register commands in package.json (command palette, outline view title, CMakeLists.txt context menus, explorer context)
  • Add localization strings: "Delete Cache, Reconfigure and Build" / "Delete Cache, Reconfigure and Build All Projects"

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:

async cleanConfigureAndBuild(trigger: ConfigureTrigger = ConfigureTrigger.api): Promise<number> {
    const configureResult = (await this.cleanConfigure(trigger)).exitCode;
    if (configureResult !== 0) {
        return configureResult;
    }
    return (await this.build()).exitCode;
}

The cmake.outline.cleanConfigureAndBuild command is defined but not explicitly registered in extension.ts — this is consistent with existing outline commands like cmake.outline.cleanRebuild and cmake.outline.cleanConfigure which 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
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /usr/local/bin/yarn install --frozen-lockfile (dns block)
  • 78kvsblobprodwus2152.vsblob.vsassets.io
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /usr/local/bin/yarn install --frozen-lockfile (dns block)
  • b53vsblobprodwus2154.vsblob.vsassets.io
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /usr/local/bin/yarn install --frozen-lockfile (dns block)
  • km4vsblobprodwus2183.vsblob.vsassets.io
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /usr/local/bin/yarn install --frozen-lockfile (dns block)
  • l7ivsblobprodwus2133.vsblob.vsassets.io
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /usr/local/bin/yarn install --frozen-lockfile (dns block)
  • v41vsblobprodwus2175.vsblob.vsassets.io
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /usr/local/bin/yarn install --frozen-lockfile (dns block)
  • vd2vsblobprodwus2150.vsblob.vsassets.io
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /usr/local/bin/yarn install --frozen-lockfile (dns block)
  • wztvsblobprodwus2155.vsblob.vsassets.io
    • Triggering command: /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

This section details on the original issue you should resolve

<issue_title>[Feature] "Delete Cache and Reconfigure" and Build</issue_title>
<issue_description>### Request Overview

When my build folder is broken, I always would like to delete cache / reconfigure and Build.

Instead of "Delete Cache and Reconfigure", wait 2 minutes, comes back, click "Build" and wait 5 minutes.

I would like to come back only once after 7 minutes.

Additional Information

No response</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits February 12, 2026 19:44
Add cleanConfigureAndBuild and cleanConfigureAndBuildAll commands that
chain cleanConfigure + build operations, allowing users to delete cache,
reconfigure, and build in a single action without manual intervention.

Co-authored-by: snehara99 <[email protected]>
Copilot AI changed the title [WIP] Add functionality to delete cache and build Add "Delete Cache, Reconfigure and Build" command Feb 12, 2026
Copilot AI requested a review from snehara99 February 12, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] "Delete Cache and Reconfigure" and Build

2 participants