-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
feat: plugin API #252
Comments
We're currently rewriting the frontend and the plugin API will likely change significantly in the process; I'll transfer this so we know to keep it in mind when we get to that point |
That's great, but as far as I know, there's no ETA for both new client and plugin API. So maybe adding support to Revite as a quick patch a great idea, until the new client arrives? |
There aren't any ETAs, correct. We're currently only doing important bug fixes for Revite/small tweaks that don't carry much risk - in my opinion, something like this would need more testing than we intend to do for Revite. |
Hijacking this issue, proposal for new plugin format: ---
name = "Name"
author = "me"
---
// code
return {
onSomeHandler: () => {}
} TOML frontmatter on top of JS |
I don't know if this is an already accepted proposal, but here's my recommendations:
|
wrt (2), the idea would be that the plugin is implicitly wrapped in a function when evaluated, and then we can take the return at the end |
What do you want to see?
Currently, Plugin API doesn't support loading(?)/unloading when plugin is async. Async support for both plugins and
onUnload
function will fix the plugin unloading, and might make it easier to handle some asynchronous situations.Revite Async Support Patch
I already made a quick patch about it, but since I'm not familiar with Revite's technologies, I thought it would be better to both ask for the feature if it's in scope, and get a review about the patch. If it's considered to be added and patch looks fine, I can create a PR.The text was updated successfully, but these errors were encountered: