From fa738ee5e17abf3ad104bc054b2c4e23f0710b04 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Fri, 18 Oct 2024 14:08:32 -0400 Subject: [PATCH] vue: Extract to zed-extensions/vue repository (#19426) This PR extracts the Vue extension to the [zed-extensions/vue](https://github.com/zed-extensions/vue) repository. Release Notes: - N/A --- Cargo.lock | 8 - Cargo.toml | 1 - extensions/vue/Cargo.toml | 17 -- extensions/vue/LICENSE-APACHE | 1 - extensions/vue/extension.toml | 19 -- extensions/vue/languages/vue/brackets.scm | 2 - extensions/vue/languages/vue/config.toml | 22 --- extensions/vue/languages/vue/highlights.scm | 15 -- extensions/vue/languages/vue/injections.scm | 81 -------- extensions/vue/languages/vue/overrides.scm | 7 - extensions/vue/src/vue.rs | 205 -------------------- 11 files changed, 378 deletions(-) delete mode 100644 extensions/vue/Cargo.toml delete mode 120000 extensions/vue/LICENSE-APACHE delete mode 100644 extensions/vue/extension.toml delete mode 100644 extensions/vue/languages/vue/brackets.scm delete mode 100644 extensions/vue/languages/vue/config.toml delete mode 100644 extensions/vue/languages/vue/highlights.scm delete mode 100644 extensions/vue/languages/vue/injections.scm delete mode 100644 extensions/vue/languages/vue/overrides.scm delete mode 100644 extensions/vue/src/vue.rs diff --git a/Cargo.lock b/Cargo.lock index 646b7fdde8823..a27005e5d12df 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -14894,14 +14894,6 @@ dependencies = [ "zed_extension_api 0.1.0", ] -[[package]] -name = "zed_vue" -version = "0.1.1" -dependencies = [ - "serde", - "zed_extension_api 0.1.0", -] - [[package]] name = "zed_zig" version = "0.3.1" diff --git a/Cargo.toml b/Cargo.toml index f1bbe1efee458..e6d71a291aee9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -162,7 +162,6 @@ members = [ "extensions/test-extension", "extensions/toml", "extensions/uiua", - "extensions/vue", "extensions/zig", # diff --git a/extensions/vue/Cargo.toml b/extensions/vue/Cargo.toml deleted file mode 100644 index db36785a40386..0000000000000 --- a/extensions/vue/Cargo.toml +++ /dev/null @@ -1,17 +0,0 @@ -[package] -name = "zed_vue" -version = "0.1.1" -edition = "2021" -publish = false -license = "Apache-2.0" - -[lints] -workspace = true - -[lib] -path = "src/vue.rs" -crate-type = ["cdylib"] - -[dependencies] -serde = { version = "1.0", features = ["derive"] } -zed_extension_api = "0.1.0" diff --git a/extensions/vue/LICENSE-APACHE b/extensions/vue/LICENSE-APACHE deleted file mode 120000 index 1cd601d0a3aff..0000000000000 --- a/extensions/vue/LICENSE-APACHE +++ /dev/null @@ -1 +0,0 @@ -../../LICENSE-APACHE \ No newline at end of file diff --git a/extensions/vue/extension.toml b/extensions/vue/extension.toml deleted file mode 100644 index da7085f0c9b63..0000000000000 --- a/extensions/vue/extension.toml +++ /dev/null @@ -1,19 +0,0 @@ -id = "vue" -name = "Vue" -description = "Vue support." -version = "0.1.1" -schema_version = 1 -authors = ["Piotr Osiewicz "] -repository = "https://github.com/zed-industries/zed" - -[language_servers.vue-language-server] -name = "Vue Language Server" -language = "Vue.js" -language_ids = { "Vue.js" = "vue" } -# REFACTOR is explicitly disabled, as vue-lsp does not adhere to LSP protocol for code actions with these - it -# sends back a CodeAction with neither `command` nor `edits` fields set, which is against the spec. -code_action_kinds = ["", "quickfix", "refactor.rewrite"] - -[grammars.vue] -repository = "https://github.com/tree-sitter-grammars/tree-sitter-vue" -commit = "7e48557b903a9db9c38cea3b7839ef7e1f36c693" diff --git a/extensions/vue/languages/vue/brackets.scm b/extensions/vue/languages/vue/brackets.scm deleted file mode 100644 index 2d12b17daab82..0000000000000 --- a/extensions/vue/languages/vue/brackets.scm +++ /dev/null @@ -1,2 +0,0 @@ -("<" @open ">" @close) -("\"" @open "\"" @close) diff --git a/extensions/vue/languages/vue/config.toml b/extensions/vue/languages/vue/config.toml deleted file mode 100644 index 606c733ffc1f5..0000000000000 --- a/extensions/vue/languages/vue/config.toml +++ /dev/null @@ -1,22 +0,0 @@ -name = "Vue.js" -code_fence_block_name = "vue" -grammar = "vue" -path_suffixes = ["vue"] -block_comment = [""] -autoclose_before = ";:.,=}])>" -brackets = [ - { start = "{", end = "}", close = true, newline = true }, - { start = "[", end = "]", close = true, newline = true }, - { start = "(", end = ")", close = true, newline = true }, - { start = "<", end = ">", close = true, newline = true, not_in = ["string", "comment"] }, - { start = "\"", end = "\"", close = true, newline = false, not_in = ["string"] }, - { start = "'", end = "'", close = true, newline = false, not_in = ["string", "comment"] }, - { start = "`", end = "`", close = true, newline = false, not_in = ["string"] }, -] -word_characters = ["-"] -scope_opt_in_language_servers = ["tailwindcss-language-server"] -prettier_parser_name = "vue" - -[overrides.string] -word_characters = ["-"] -opt_into_language_servers = ["tailwindcss-language-server"] diff --git a/extensions/vue/languages/vue/highlights.scm b/extensions/vue/languages/vue/highlights.scm deleted file mode 100644 index 548f57d26762a..0000000000000 --- a/extensions/vue/languages/vue/highlights.scm +++ /dev/null @@ -1,15 +0,0 @@ -(attribute) @property -(directive_attribute) @property -(quoted_attribute_value) @string -(interpolation) @punctuation.special -(raw_text) @embedded - -((tag_name) @type - (#match? @type "^[A-Z]")) - -(directive_name) @keyword -(directive_argument) @constant - -(start_tag) @tag -(end_tag) @tag -(self_closing_tag) @tag diff --git a/extensions/vue/languages/vue/injections.scm b/extensions/vue/languages/vue/injections.scm deleted file mode 100644 index 975fbe12fadc0..0000000000000 --- a/extensions/vue/languages/vue/injections.scm +++ /dev/null @@ -1,81 +0,0 @@ -;