Remove triple-based suffix
This commit is contained in:
parent
af1ad474e3
commit
b3ac63b7b5
4 changed files with 14 additions and 40 deletions
|
@ -11,11 +11,6 @@ use util::ResultExt;
|
|||
|
||||
#[allow(dead_code)]
|
||||
pub async fn new_json(executor: Arc<Background>) -> Result<PluginLspAdapter> {
|
||||
let bytes = include_bytes!(concat!(
|
||||
"../../../../plugins/bin/json_language.wasm.",
|
||||
env!("TARGET_TRIPLE"),
|
||||
));
|
||||
|
||||
let plugin = PluginBuilder::new_default()?
|
||||
.host_function_async("command", |command: String| async move {
|
||||
let mut args = command.split(' ');
|
||||
|
@ -27,7 +22,9 @@ pub async fn new_json(executor: Arc<Background>) -> Result<PluginLspAdapter> {
|
|||
.log_err()
|
||||
.map(|output| output.stdout)
|
||||
})?
|
||||
.init(PluginBinary::Precompiled(bytes))
|
||||
.init(PluginBinary::Precompiled(include_bytes!(
|
||||
"../../../../plugins/bin/json_language.wasm.pre",
|
||||
)))
|
||||
.await?;
|
||||
|
||||
PluginLspAdapter::new(plugin, executor).await
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue