Skip to content

[build] Replace tsc watch with esbuild watch mode for faster development#5937

Merged
vrubezhny merged 1 commit into
redhat-developer:mainfrom
vrubezhny:build-esbuild-watch-mode
Jul 3, 2026
Merged

[build] Replace tsc watch with esbuild watch mode for faster development#5937
vrubezhny merged 1 commit into
redhat-developer:mainfrom
vrubezhny:build-esbuild-watch-mode

Conversation

@vrubezhny

Copy link
Copy Markdown
Contributor
  • Split build scripts: esbuild.extension.cjs for extension, esbuild.webviews.cjs for webviews
  • Add watch mode support to extension builds using esbuild.context()
  • Update tasks.json with proper dependency chain (compile → watch-all → parallel watchers)
  • Skip type-checking during watch mode (VS Code editor handles this)
  • Add error handling to keep watchers running after build errors
  • Reduces CPU usage from 80% to ~5-10% during development

Assisted-By: Claude Sonnet 4.5 noreply@anthropic.com

- Split build scripts: esbuild.extension.cjs for extension, esbuild.webviews.cjs for webviews
- Add watch mode support to extension builds using esbuild.context()
- Update tasks.json with proper dependency chain (compile → watch-all → parallel watchers)
- Skip type-checking during watch mode (VS Code editor handles this)
- Add error handling to keep watchers running after build errors
- Reduces CPU usage from 80% to ~5-10% during development

Signed-off-by: Victor Rubezhny <vrubezhny@redhat.com>
Assisted-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Jul 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 47.69%. Comparing base (da60441) to head (9929f87).
⚠️ Report is 1856 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #5937       +/-   ##
===========================================
+ Coverage   32.37%   47.69%   +15.32%     
===========================================
  Files          85      106       +21     
  Lines        6505     9843     +3338     
  Branches     1349     2231      +882     
===========================================
+ Hits         2106     4695     +2589     
- Misses       4399     5145      +746     
- Partials        0        3        +3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@vrubezhny vrubezhny merged commit 61da059 into redhat-developer:main Jul 3, 2026
6 checks passed
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.

1 participant