diff options
author | Aram Drevekenin <aram@poor.dev> | 2023-04-19 10:09:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-19 10:09:39 +0200 |
commit | caaee30179cf8e3d20ad103b898e4bad9ebf648b (patch) | |
tree | 6348896d80031befd553d71340e99c02f8f0d078 /zellij-utils/src/errors.rs | |
parent | 26fcf8470295f0ce37f70d0f7bdd557296f88539 (diff) |
feat(plugins): reload plugin at runtime (#2372)
* fix(plugins): proper error when wasm file does not exist
* reload working
* race condition handling
* refactor(plugins): start plugin
* refactor(plugins): plugin-loader
* refactor(plugins): load/reload plugin
* refactor(plugins): apply cached events
* fix(plugins): gittery loading
* chore(plugins): rename reload-plugin to start-or-reload-plugin
* chore(styling): small cleanups
* style(fmt): rustfmt
* style(fmt): cleanups
* style(fmt): cleanups
* test(e2e): update snapshots
* test(e2e): update snapshots
* chore(repo): comment plugin optimization because it doubles the CI time
Diffstat (limited to 'zellij-utils/src/errors.rs')
-rw-r--r-- | zellij-utils/src/errors.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/zellij-utils/src/errors.rs b/zellij-utils/src/errors.rs index e23c22bb0..8b49112b9 100644 --- a/zellij-utils/src/errors.rs +++ b/zellij-utils/src/errors.rs @@ -326,10 +326,13 @@ pub enum ScreenContext { NextSwapLayout, QueryTabNames, NewTiledPluginPane, + StartOrReloadPluginPane, NewFloatingPluginPane, AddPlugin, UpdatePluginLoadingStage, ProgressPluginLoadingOffset, + StartPluginLoadingIndication, + RequestStateUpdateForPlugins, } /// Stack call representations corresponding to the different types of [`PtyInstruction`]s. @@ -355,6 +358,7 @@ pub enum PluginContext { Update, Render, Unload, + Reload, Resize, Exit, AddClient, @@ -489,6 +493,9 @@ open an issue on GitHub: #[error("Client {client_id} is too slow to handle incoming messages")] ClientTooSlow { client_id: u16 }, + + #[error("The plugin does not exist")] + PluginDoesNotExist, } #[cfg(not(target_family = "wasm"))] |