Skip to content

Allow multiple api acquire in notebook webview#93048

Merged
rebornix merged 2 commits intomasterfrom
rebornix/multi-webview-acquire
Mar 19, 2020
Merged

Allow multiple api acquire in notebook webview#93048
rebornix merged 2 commits intomasterfrom
rebornix/multi-webview-acquire

Conversation

@rebornix
Copy link
Copy Markdown
Member

Notebook custom renderers live in the same webview so they already share the same messaging channel. To allow them send messages from the webview to the extension host, we can allow multiple api acquire. This feature is only turned on for Notebook.

We don't re-export acquireVSCodeAPI as we want renderers extensions to use it in the same way as a normal webview.

@rebornix rebornix self-assigned this Mar 19, 2020
@rebornix rebornix requested a review from mjbvz March 19, 2020 20:50
@rebornix rebornix added this to the March 2020 milestone Mar 19, 2020
Copy link
Copy Markdown
Collaborator

@mjbvz mjbvz left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -128,7 +128,7 @@
* @param {*} [state]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

[nit] Can you please add a jsdoc type as well

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yup, will add that first then merge.

@rebornix rebornix merged commit a67cde2 into master Mar 19, 2020
@rebornix rebornix deleted the rebornix/multi-webview-acquire branch March 19, 2020 23:25
@github-actions github-actions bot locked and limited conversation to collaborators May 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants