aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-server/src/plugins/plugin_worker.rs
diff options
context:
space:
mode:
authorhar7an <99636919+har7an@users.noreply.github.com>2025-03-03 09:26:58 +0000
committerGitHub <noreply@github.com>2025-03-03 09:26:58 +0000
commit736d43b138fea4e7bec6dfb6193e1370594886ff (patch)
treed07ac56a57a7e6921faa916131b9f8e0787434f0 /zellij-server/src/plugins/plugin_worker.rs
parentfix(panes): various fixes for rendering stacked panes without pane frames (#4... (diff)
downloadsl0ppij-736d43b138fea4e7bec6dfb6193e1370594886ff.tar.gz
sl0ppij-736d43b138fea4e7bec6dfb6193e1370594886ff.tar.xz
sl0ppij-736d43b138fea4e7bec6dfb6193e1370594886ff.zip
fix(toolchain): Unbreak client startup
This reverts commit 9f900a7325304a06d9e0913a8e661d7bbc86ad04.
Diffstat (limited to 'zellij-server/src/plugins/plugin_worker.rs')
-rw-r--r--zellij-server/src/plugins/plugin_worker.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/zellij-server/src/plugins/plugin_worker.rs b/zellij-server/src/plugins/plugin_worker.rs
index 635c8f50..3b630706 100644
--- a/zellij-server/src/plugins/plugin_worker.rs
+++ b/zellij-server/src/plugins/plugin_worker.rs
@@ -5,21 +5,29 @@ use wasmtime::{Instance, Store};
use zellij_utils::async_channel::{unbounded, Receiver, Sender};
use zellij_utils::async_std::task;
use zellij_utils::errors::prelude::*;
+use zellij_utils::input::plugins::PluginConfig;
use zellij_utils::plugin_api::message::ProtobufMessage;
use zellij_utils::prost::Message;
pub struct RunningWorker {
pub instance: Instance,
pub name: String,
+ pub plugin_config: PluginConfig,
pub store: Store<PluginEnv>,
}
impl RunningWorker {
- pub fn new(store: Store<PluginEnv>, instance: Instance, name: &str) -> Self {
+ pub fn new(
+ store: Store<PluginEnv>,
+ instance: Instance,
+ name: &str,
+ plugin_config: PluginConfig,
+ ) -> Self {
RunningWorker {
store,
instance,
name: name.into(),
+ plugin_config,
}
}
pub fn send_message(&mut self, message: String, payload: String) -> Result<()> {