Add allocator to store so that it can be used by host functions
This commit is contained in:
parent
47520f0ca1
commit
1f5903d16d
2 changed files with 109 additions and 58 deletions
|
@ -1,16 +1,12 @@
|
|||
use super::installation::{npm_install_packages, npm_package_latest_version};
|
||||
use anyhow::{anyhow, Context, Result};
|
||||
use anyhow::{anyhow, Result};
|
||||
use client::http::HttpClient;
|
||||
use futures::lock::Mutex;
|
||||
use futures::{future::BoxFuture, FutureExt, StreamExt};
|
||||
use gpui::executor::{self, Background};
|
||||
use isahc::http::version;
|
||||
use futures::{future::BoxFuture, FutureExt};
|
||||
use gpui::executor::Background;
|
||||
use language::{LanguageServerName, LspAdapter};
|
||||
use plugin_runtime::{Wasi, WasiFn, WasiPlugin, WasiPluginBuilder};
|
||||
use serde_json::json;
|
||||
use std::fs;
|
||||
use plugin_runtime::{Wasi, WasiFn, WasiPluginBuilder};
|
||||
use std::{any::Any, path::PathBuf, sync::Arc};
|
||||
use util::{ResultExt, TryFutureExt};
|
||||
use util::ResultExt;
|
||||
|
||||
pub async fn new_json(executor: Arc<Background>) -> Result<PluginLspAdapter> {
|
||||
let plugin = WasiPluginBuilder::new_with_default_ctx()?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue