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
As both webviewId and webviewType are optional, I believed them both to be truly optional. However, at least one of them is needed. This fact is not reflected in the type definition. Instead, the type should probably look something like this:
exporttypeWebviewMessageParticipant=WebviewIdMessageParticipant|WebviewTypeMessageParticipant;exportinterfaceWebviewIdMessageParticipant{type: 'webview'/** Identifier of a specific webview instance. */webviewId: string}exportinterfaceWebviewTypeMessageParticipant{type: 'webview'/** Webview panel type or webview view type. */webviewType: string}
The text was updated successfully, but these errors were encountered:
Currently, using the
WebviewMessageParticipant
instead leads into a non-obvious pitfall:vscode-messenger/packages/vscode-messenger-common/src/messages.ts
Lines 26 to 32 in f8746a5
As both
webviewId
andwebviewType
are optional, I believed them both to be truly optional. However, at least one of them is needed. This fact is not reflected in the type definition. Instead, the type should probably look something like this:The text was updated successfully, but these errors were encountered: