Extract Vue extension (#10486)

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

Release Notes:

- Removed built-in support for Vue, in favor of making it available as
an extension. The Vue extension will be suggested for download when you
open a `.vue` file.

---------

Co-authored-by: Max <max@zed.dev>
This commit is contained in:
Marshall Bowers 2024-04-12 14:39:27 -04:00 committed by GitHub
parent 8bca9cea26
commit f3a78f613a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 196 additions and 275 deletions

View file

@ -130,21 +130,20 @@ impl LspAdapter for ExtensionLspAdapter {
}
fn code_action_kinds(&self) -> Option<Vec<CodeActionKind>> {
if self.extension.manifest.id.as_ref() == "terraform" {
// This is taken from the original Terraform implementation, including
// the TODOs:
// TODO: file issue for server supported code actions
// TODO: reenable default actions / delete override
return Some(vec![]);
}
let code_action_kinds = self
.extension
.manifest
.language_servers
.get(&self.language_server_id)
.and_then(|server| server.code_action_kinds.clone());
Some(vec![
code_action_kinds.or(Some(vec![
CodeActionKind::EMPTY,
CodeActionKind::QUICKFIX,
CodeActionKind::REFACTOR,
CodeActionKind::REFACTOR_EXTRACT,
CodeActionKind::SOURCE,
])
]))
}
fn language_ids(&self) -> HashMap<String, String> {

View file

@ -106,6 +106,8 @@ pub struct LanguageServerManifestEntry {
languages: Vec<Arc<str>>,
#[serde(default)]
pub language_ids: HashMap<String, String>,
#[serde(default)]
pub code_action_kinds: Option<Vec<lsp::CodeActionKind>>,
}
impl LanguageServerManifestEntry {