You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **Important:** The `webviewName` in the `WebviewControllerBase` constructor is the **registry key** (must match a key in `WebviewRegistry`, e.g. `collectionView`). The `webviewName` in the tRPC context is a **telemetry label** used in telemetry event names (e.g. `collectionView`). These may be the same string but serve different purposes — do not confuse them.
127
+
The returned `AppWebviewController` handle exposes `panel`, `onDisposed`,
128
+
`revealToForeground`, `isDisposed`, and `dispose`. Genuinely stateful panels may
129
+
still extend `WebviewController` from `@microsoft/vscode-ext-webview/host`
130
+
directly instead of using the factory.
131
+
132
+
> **Important:** The `webviewName` field passed to `openAppWebview` is the
133
+
> **registry key** (`viewType`, must match a key in `WebviewRegistry`, e.g.
134
+
> `collectionView`). The `webviewName` in the tRPC context is a **telemetry
135
+
> label** used in telemetry event names. These may be the same string but serve
136
+
> different purposes -- do not confuse them.
117
137
118
138
### 5. Register in WebviewRegistry
119
139
120
-
Add your React component to the registry. The key must match the `webviewName` passed to `WebviewControllerBase`'s constructor. The `WebviewName` type (exported from the same file) ensures compile-time validation of webview names.
140
+
Add your React component to the registry. The key must match the `webviewName`
141
+
passed to `openAppWebview` (`viewType`). The `WebviewName` type (exported from
142
+
the same file) ensures compile-time validation of webview names.
0 commit comments