Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test finalized renderer messaging API #129472

Closed
2 tasks done
connor4312 opened this issue Jul 27, 2021 · 4 comments
Closed
2 tasks done

Test finalized renderer messaging API #129472

connor4312 opened this issue Jul 27, 2021 · 4 comments

Comments

@connor4312
Copy link
Member

connor4312 commented Jul 27, 2021

Refs: #123601

Complexity 4

Create Issue

Create Issue


Renderers do not use standard webview messaging, so we created a new messaging channel for them to talk to the extension. Messaging must be requested statically and is opt-in, since renderers which have a hard dependency on messaging will not be usable in aznb.

Note that, since the editor is still proposed, an empty object is given and accepted in this API when enableProposedApi is not turned on.

You can test this functionality with an existing renderer-bearing extension, like github-issues-notebooks, or create your own notebook renderer via npm install -g generator-code && yo code

@isidorn
Copy link
Contributor

isidorn commented Jul 29, 2021

Works fine, I just find it weird that this is finalized API but if I do not have enableProposedApi I will get an empty object.

@isidorn isidorn removed their assignment Jul 29, 2021
@roblourens
Copy link
Member

Yeah, we are sure we want to finalize an API that depends on proposed API? Are we confident enough in the proposed API?

@connor4312
Copy link
Member Author

I think we're confident that there will be something named a NotebookEditor and that we want it passed when doing messaging. Stable vscode.d.ts types it as an empty interface, so an empty object is passed to ensure that non-proposed consumers don't accidentally depend on any of its properties.

@rzhao271
Copy link
Contributor

Isi took care of Paula's slot. Closing the TPI

@github-actions github-actions bot locked and limited conversation to collaborators Sep 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants