Skip to content

Document extension architecture, lifecycle, and background services - #6503

Open
DanTupBot wants to merge 1 commit into
Dart-Code:masterfrom
DanTupBot:issue6491_fix
Open

DanTupBot wants to merge 1 commit into
Dart-Code:masterfrom
DanTupBot:issue6491_fix

Conversation

@DanTupBot

Copy link
Copy Markdown
Collaborator

Adds high-level maintainer documentation covering the extension's architecture, activation/reload lifecycle, background services, and bundle/API boundaries:

  • docs/architecture-and-lifecycle.md: Documents process topology and SDK/extension ownership boundaries, activation ordering and eager vs. deferred startup, _dart.reloadExtension coalescing and reload triggers, crash/timeout recovery, bounded deactivate() cleanup and state preserved across restarts, and Webpack/API boundaries (PublicDartExtensionApi and test-only privateApi), with links to the key implementing files.
  • docs/README.md: Indexes docs/architecture-and-lifecycle.md under Contents.

Fixes #6491 (part of #6490).

@DanTupBot
DanTupBot requested a review from DanTup November 27, 2026 18:11
@DanTupBot DanTupBot added in docs / website Relates to documentation, including the Dart Code website non-functional Something that doesn't affect users and should be excluded from release notes labels Nov 27, 2026
@DanTupBot DanTupBot added this to the v3.148.0 milestone Nov 27, 2026
@DanTup DanTup modified the milestones: v3.148.0, v3.150.0 Nov 27, 2026
@DanTup DanTup added is enhancement An enhancement or improvement that should be listed in release notes but is not a bug fix. and removed non-functional Something that doesn't affect users and should be excluded from release notes labels Nov 27, 2026
@codecov

codecov Bot commented Nov 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.87%. Comparing base (f133e2d) to head (7601144).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6503      +/-   ##
==========================================
- Coverage   81.97%   81.87%   -0.10%     
==========================================
  Files         173      173              
  Lines       14034    14034              
  Branches     2879     2879              
==========================================
- Hits        11504    11490      -14     
- Misses       2065     2077      +12     
- Partials      465      467       +2     

☔ 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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in docs / website Relates to documentation, including the Dart Code website is enhancement An enhancement or improvement that should be listed in release notes but is not a bug fix.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document extension architecture, lifecycle, and background services (docs/architecture-and-lifecycle.md)

2 participants