Skip to content

v2.0.0

Latest

Choose a tag to compare

@tnaum-ms tnaum-ms released this 07 Jul 10:14
  • Adopted the @microsoft/vscode-ext-webview package β€” the tRPC transport, panel facade, and React hooks that previously lived in a local src/webviews/api/ copy are now consumed from the published npm package. This repository is the canonical all-in (React + tRPC + webview) reference consumer.
  • New src/webviews/_integration/ layer β€” consumer-owned glue over the package: root appRouter, the trpc telemetry adapter, the openAppWebview panel preset, the useTrpcClient wrapper, and the WebviewRegistry.
  • Panels open via openAppWebview β€” construction-only views use the factory over the package's openWebview instead of WebviewController subclasses.
  • Client-first useTrpcClient β€” the hook now returns the tRPC client directly (const trpcClient = useTrpcClient()); WithWebviewContext/useConfiguration come from @microsoft/vscode-ext-webview/react.
  • Removed the local src/webviews/api/ folder and WebviewContext.tsx (now provided by the package).
  • Docs β€” added migration.md for moving from the local copy to the package, refreshed the README and Copilot skills, and rebuilt the "Add a New View" tutorial as commit-by-commit steps.