-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Improve documentation on the addition of Plugin API in the plugin host #13153
Conversation
@martin-fleck-at This is looking good. I notice you haven't added anyone as a reviewer, so maybe this isn't ready for review. But I'll add this comment while I have it on my mind. One gap that existed before and persists in your draft is that the guide doesn't touch on the need to have a TypeScript file that declares the interfaces and defines constants to refer to the RPC proxies for both side of the interface. In a rescent related PR, that would be the file
|
Another gap that persists is that there is no mention of the need to implement and contribute (via DI) a |
@jcortell68 Thank you for having a look at this John! I think that the reason for the missing |
Oh wow. I never thought of that. Indeed it could. That API would be entirely serviced in the plugin-host. Very interesting. But yes, I would imagine that's more of an academic use case than one likely to actually happen. So yes, please...let's get the "likely" scenario documented here and maybe add a note that it's technically optional, but likely to be needed. |
42d4658
to
5929812
Compare
5929812
to
6359e0c
Compare
7c2cd1e
to
42de276
Compare
I've completed the detailed review. Again, this is great stuff. I just have one final comment on the title ( The problem here is that this isn't just about API namespaces. This article is meant for Theia app developers who want to introduce custom API for use by a Theia plugin. Plugin API is made up of numerous namespaces, but they are scoped by API objects. I.e. there is an API object that specifically provides both VS Code Extension API and Theia plugin API, and that API object is contributed by Theia itself. As an app developer, I'm not looking to add API namespaces to that API object. I want to develop a Theia extension that exposes a custom plugin API object (that has custom plugin API namespaces). Again, the current title of this guide doesn't really make that clear. As such, I recommend renaming it to something like
The above suggestion is just that--suggested wording. It's the messaging that's important. |
0c03c95
to
bd1d132
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks very good already.
I've added a few comments/suggestions on the code examples that I noticed while following the docs.
What it does
Improves documentation on the API extensions in plugin hosts.
Fixes #13067
How to test
Read, compare, try :-)
Follow-ups
No follow-ups.
Review checklist
Reminder for reviewers