Extract PureScript support into an extension (#9824)

This PR extracts PureScript support into an extension and removes the
built-in PureScript support from Zed.

Release Notes:

- Removed built-in support for PureScript, in favor of making it
available as an extension. The PureScript extension will be suggested
for download when you open a `.purs` file.
This commit is contained in:
Marshall Bowers 2024-03-26 13:55:46 -04:00 committed by GitHub
parent d77cda1ea9
commit b8ef97015c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 144 additions and 167 deletions

View file

@ -1,5 +1,5 @@
use crate::wasm_host::{wit::LanguageServerConfig, WasmExtension, WasmHost};
use anyhow::{anyhow, Result};
use anyhow::{anyhow, Context, Result};
use async_trait::async_trait;
use futures::{Future, FutureExt};
use gpui::AsyncAppContext;
@ -120,7 +120,9 @@ impl LspAdapter for ExtensionLspAdapter {
})
.await?;
Ok(if let Some(json_options) = json_options {
serde_json::from_str(&json_options)?
serde_json::from_str(&json_options).with_context(|| {
format!("failed to parse initialization_options from extension: {json_options}")
})?
} else {
None
})