Skip to content

Delete tsbuildinfo for extensions on rebuild#311842

Merged
mjbvz merged 2 commits intomicrosoft:mainfrom
mjbvz:dev/mjbvz/raspy-mosquito
Apr 22, 2026
Merged

Delete tsbuildinfo for extensions on rebuild#311842
mjbvz merged 2 commits intomicrosoft:mainfrom
mjbvz:dev/mjbvz/raspy-mosquito

Conversation

@mjbvz
Copy link
Copy Markdown
Collaborator

@mjbvz mjbvz commented Apr 22, 2026

Seems like if a tsbuildinfo file exists but the output itself is deleted, then nothing will be reemitted by tsgo? At least that's what seems to happen with our build scripts for local development

cc @connor4312 See if this fixes the issue you were seeing. I couldn't repo it initially because I was always trying clean builds

Apparently if tsbuildinfo exists but the output itself is deleted, then nothing will be reemitted? At least that's what seems to happen with our build setup

Co-authored-by: Copilot <copilot@github.com>
Copilot AI review requested due to automatic review settings April 22, 2026 05:11
@mjbvz mjbvz enabled auto-merge April 22, 2026 05:12
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the extension rebuild workflow in the VS Code build system to ensure extensions are re-emitted correctly during local development when outputs have been deleted but incremental build metadata remains.

Changes:

  • Add deletion of the relevant *.tsbuildinfo file when cleaning an extension’s out/ folder.
  • Convert the extension clean task to an async task to sequence out/ removal and build-info cleanup.
Show a summary per file
File Description
build/gulpfile.extensions.ts Ensures extension clean removes both out/ and the corresponding .tsbuildinfo to prevent incremental builds from skipping emits.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment thread build/gulpfile.extensions.ts
@mjbvz mjbvz merged commit f7526a2 into microsoft:main Apr 22, 2026
26 checks passed
@vs-code-engineering vs-code-engineering Bot added this to the 1.118.0 milestone Apr 22, 2026
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.

4 participants