diff options
| author | Aram Drevekenin <aram@poor.dev> | 2023-07-25 10:04:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-25 10:04:12 +0200 |
| commit | c95d0e769f31b21f5e2d4aaf6465468344f1bfd6 (patch) | |
| tree | 9589f0875b91b73460b807e90817907bf3d7d8c6 /zellij-server/src/plugins/plugin_loader.rs | |
| parent | docs(changelog): generate session names with custom words list (diff) | |
| download | sl0ppij-c95d0e769f31b21f5e2d4aaf6465468344f1bfd6.tar.gz sl0ppij-c95d0e769f31b21f5e2d4aaf6465468344f1bfd6.tar.xz sl0ppij-c95d0e769f31b21f5e2d4aaf6465468344f1bfd6.zip | |
feat(plugins): make plugins configurable (#2646)
* work
* make every plugin entry point configurable
* make integration tests pass
* make e2e tests pass
* add test for plugin configuration
* add test snapshot
* add plugin config parsing test
* cleanups
* style(fmt): rustfmt
* style(comment): remove commented code
Diffstat (limited to 'zellij-server/src/plugins/plugin_loader.rs')
| -rw-r--r-- | zellij-server/src/plugins/plugin_loader.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/zellij-server/src/plugins/plugin_loader.rs b/zellij-server/src/plugins/plugin_loader.rs index 324b540d..73957cf7 100644 --- a/zellij-server/src/plugins/plugin_loader.rs +++ b/zellij-server/src/plugins/plugin_loader.rs @@ -1,6 +1,6 @@ use crate::plugins::plugin_map::{PluginEnv, PluginMap, RunningPlugin, Subscriptions}; use crate::plugins::plugin_worker::{plugin_worker, RunningWorker}; -use crate::plugins::zellij_exports::{wasi_read_string, zellij_exports}; +use crate::plugins::zellij_exports::{wasi_read_string, wasi_write_object, zellij_exports}; use crate::plugins::PluginId; use highway::{HighwayHash, PortableHash}; use log::info; @@ -723,7 +723,14 @@ impl<'a> PluginLoader<'a> { } } start_function.call(&[]).with_context(err_context)?; + + wasi_write_object( + &plugin_env.wasi_env, + &self.plugin.userspace_configuration.inner(), + ) + .with_context(err_context)?; load_function.call(&[]).with_context(err_context)?; + display_loading_stage!( indicate_starting_plugin_success, self.loading_indication, |
