Skip to content

docs(webview): sync webview-ext migration manual with merged package#779

Merged
tnaum-ms merged 3 commits into
mainfrom
dev/tnaum/webview-migrations
Jul 6, 2026
Merged

docs(webview): sync webview-ext migration manual with merged package#779
tnaum-ms merged 3 commits into
mainfrom
dev/tnaum/webview-migrations

Conversation

@tnaum-ms

@tnaum-ms tnaum-ms commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

Brings the internal webview-ext-migration-manual.md back in sync with the @microsoft/vscode-ext-webview package as it landed in PR #766. The manual had drifted from the merged host-wiring API; this updates the rename map, code samples, and checklist to match the shipped code.

Changes

  • trpc replaces createCallerFactory in the options bag (Path A / Path B / rename map / checklist). createCallerFactory is retained in the package but is now @deprecated; the caller factory is read off the initWebviewTrpc<...>() instance so it can never be mismatched with the router.
  • isBundled: boolean is now a required option — added to all WebviewController / openWebview samples.
  • WithTelemetry is now a package-exported generic (FrameworkWithTelemetry<T, ITelemetryContext>), not a locally-defined Omit<...> type.
  • documentDbTelemetryRunner sample updated to reflect the real adapter: parseError-based error enrichment plus aborted-call handling via getInvocationSignal (R766-C02).
  • Minor: useTrpcClient wrapper return type (TrpcClient<AppRouter>), the logger: rpcConcurrencyLogger option, and the trpc re-export.
  • Left the attachTrpc section's explicit createCallerFactory argument as-is — the low-level primitive still takes it.

Notes

Docs-only change to an internal working note under docs/ai-and-plans/; no source, tests, or localization are affected. File is Prettier-clean.

tnaum-ms added 3 commits July 6, 2026 10:33
…rosoft/vscode-documentdb into dev/tnaum/webview-migrations

# Conflicts:
#	docs/ai-and-plans/PRs/766-webview-ext-package-redesign/webview-ext-migration-manual.md
Copilot AI review requested due to automatic review settings July 6, 2026 10:37
@tnaum-ms tnaum-ms requested a review from a team as a code owner July 6, 2026 10:37
@tnaum-ms tnaum-ms added this to the 0.9.2 milestone Jul 6, 2026
@tnaum-ms tnaum-ms enabled auto-merge July 6, 2026 10:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the internal webview migration manual to match the merged @microsoft/vscode-ext-webview host-wiring API and the DocumentDB integration patterns introduced in PR #766.

Changes:

  • Updates the rename map and samples to pass trpc (from initWebviewTrpc<...>()) into WebviewController / openWebview, and to include the required isBundled: boolean option.
  • Refreshes the telemetry adapter sample to reflect parseError enrichment and aborted-call handling via getInvocationSignal.
  • Tweaks React hook wrapper example to return TrpcClient<AppRouter> explicitly and notes optional logging (rpcConcurrencyLogger) in options.

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

✅ Code Quality Checks

Check Status How to fix
Localization (l10n) ✅ Passed
ESLint ✅ Passed
Prettier formatting ✅ Passed

This comment is updated automatically on each push.

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

📦 Build Size Report

Metric Base (main) PR Delta
VSIX (vscode-documentdb-0.9.1.vsix) 8.01 MB 8.01 MB ✅ 0 KB (0.0%)
Webview bundle (views.js) 5.88 MB 5.88 MB ✅ 0 KB (0.0%)

Download artifact · updated automatically on each push.

@tnaum-ms tnaum-ms merged commit 2f6a233 into main Jul 6, 2026
9 checks passed
@tnaum-ms tnaum-ms deleted the dev/tnaum/webview-migrations branch July 6, 2026 10:45
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