Skip to content

copilot: bump esbuild from 0.25.6 to 0.27.2#309975

Merged
ulugbekna merged 1 commit intomainfrom
ulugbekna/bump-copilot-esbuild-0.27.2
Apr 14, 2026
Merged

copilot: bump esbuild from 0.25.6 to 0.27.2#309975
ulugbekna merged 1 commit intomainfrom
ulugbekna/bump-copilot-esbuild-0.27.2

Conversation

@ulugbekna
Copy link
Copy Markdown
Contributor

Problem

The copilot extension's esbuild service process (--service=0.25.6 --ping) leaks memory in long-running watch mode, growing to 1–2.7 GB over hours. Meanwhile, vscode's own build uses esbuild 0.27.2, which stays at 7–29 MB even after days.

The 0.25.6 version comes as a transitive dependency via tsx@4.20.3. Since there's no direct esbuild dependency in the copilot extension, the build script (.esbuild.ts) resolves to tsx's copy.

Measurement

esbuild version Source Uptime RSS
0.25.6 (copilot) code/vscode 7h 35m 2.7 GB
0.25.6 (copilot) vsc1 4d 8h 1.0 GB
0.25.6 (copilot) vsc2 6d 4h 1.0 GB
0.27.2 (vscode build) same machines same uptimes 7–29 MB

Fix

Add esbuild: "0.27.2" as a direct devDependency. npm nests tsx's own esbuild@0.25.x under node_modules/tsx/node_modules/esbuild, so tsx continues to work correctly.

The copilot extension was using esbuild 0.25.6 (transitive via tsx),
which has a memory leak in long-running watch mode. The esbuild service
process grows to 1-2.7 GB over hours of watch usage, while esbuild
0.27.2 (used by vscode's own build) stays at 7-29 MB even after days.

Add esbuild 0.27.2 as a direct devDependency so the build script
resolves to the fixed version. tsx retains its own nested 0.25.x.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 14, 2026 20:58
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

Note

Copilot was unable to run its full agentic suite in this review.

Adds a direct devDependency on esbuild@0.27.2 for the Copilot extension so the build/watch pipeline uses a newer esbuild version (matching VS Code’s), avoiding the memory growth observed with the transitive esbuild@0.25.x pulled in via tsx.

Changes:

  • Add esbuild: "0.27.2" to extensions/copilot devDependencies to force module resolution to the newer esbuild.
Show a summary per file
File Description
extensions/copilot/package.json Adds a direct esbuild devDependency to ensure the extension build uses esbuild 0.27.2 instead of tsx’s transitive 0.25.x.

Copilot's findings

Files not reviewed (1)
  • extensions/copilot/package-lock.json: Language not supported
  • Files reviewed: 1/2 changed files
  • Comments generated: 1

Comment thread extensions/copilot/package.json
@github-actions
Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 1a6b1ce1 Current: abf02615

Changed (1)

chat/aiCustomizations/aiCustomizationManagementEditor/McpBrowseMode/Light
Before After
before after

@ulugbekna ulugbekna merged commit 593c13a into main Apr 14, 2026
30 checks passed
@ulugbekna ulugbekna deleted the ulugbekna/bump-copilot-esbuild-0.27.2 branch April 14, 2026 21:46
@vs-code-engineering vs-code-engineering Bot added this to the 1.117.0 milestone Apr 14, 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.

3 participants