Compare commits

..

No commits in common. "3c74a0fe4f6e8243fc78b2a74d98246cd6c218be" and "0997c7d2ebe5ed573ff547e2341a644fa28ca71b" have entirely different histories.

2 changed files with 139 additions and 170 deletions

View file

@ -10,172 +10,141 @@ repository = "https://github.com/xhyrom/zed-discord-presence"
name = "Discord Presence LSP" name = "Discord Presence LSP"
# Generated by scripts/get_languages.sh # Generated by scripts/get_languages.sh
languages = [ languages = [
"Ada", "AsciiDoc",
"Aiken", "Assembly",
"Amber", "Shell Script",
"AsciiDoc", "Beancount",
"Assembly", "Bend",
"AWK", "Blade",
"Python", "BQN",
"Shell Script", "Brainfuck",
"Beancount", "Cadence",
"Bend", "Cairo",
"Blade", "Cap'n Proto",
"Blueprint", "Cedar",
"BQN", "CFEngine",
"Brainfuck", "CSV",
"C3", "Gherkin",
"Cadence", "CUE",
"Cairo", "D",
"Cap'n Proto", "DBML",
"Cedar", "Earthfile",
"CFEngine", "Elisp",
"CSV", "Handlebars",
"Gherkin", "Exograph",
"CUE", "Fish",
"Curry", "FSharp",
"D", "GDScript",
"DBML", "Godot Resource",
"Dockerfile", "Gemini",
"Earthfile", "Diff",
"EJS", "Git Attributes",
"Elisp", "Git Commit",
"Handlebars", "Git Config",
"env", "Git Ignore",
"Exograph", "Git Rebase",
"Fish", "GraphQL",
"Fortran", "Groovy",
"FSharp", "GROQ",
"GDScript", "ini",
"Godot Resource", "Jsonnet",
"Gemini", "Julia",
"Diff", "Just",
"Git Attributes", "LaTeX",
"Git Commit", "Ledger",
"Git Config", "LESS",
"Git Ignore", "LilyPond",
"Git Rebase", "LilyPond Scheme",
"Go Sum", "Liquid",
"GraphQL", "Lox",
"Groovy", "Luau",
"GROQ", "Make",
"http", "MATLAB",
"ini", "Meson",
"Java", "Navi",
"Jsonnet", "Navi Stream",
"Julia", "Nim",
"Just", "Noir",
"Kotlin", "Nu",
"LaTeX", "Odin",
"Ledger", "Pact",
"LESS", "Pest",
"LilyPond", "pica200",
"LilyPond Scheme", "Pkl",
"Liquid", "QML",
"LOG", "R",
"Lox", "Rainbow CSV",
"Luau", "Rainbow TSV",
"Make", "rego",
"MATLAB", "ReScript",
"Meson", "Roc",
"Navi", "RON",
"Navi Stream", "Scala",
"CMake", "SCSS",
"Nginx", "Smithy",
"Nim", "Solidity",
"Nix", "bazelrc",
"Noir", "Starlark",
"Nu", "Templ",
"Odin", "Twig",
"Pact", "Typst",
"Perm", "Unison",
"Pest", "V",
"pica200", "Vala",
"Pkl", "Verilog",
"Animation.txt", "VHS",
"Pdxinfo", "Wgsl",
"PowerShell", "WIT",
"QML", "XML",
"R", "C",
"Rainbow CSV", "C++",
"Rainbow TSV", "CSS",
"RCL", "Go",
"rego", "Go Mod",
"ReScript", "Go Work",
"Roc", "JavaScript",
"RON", "JSDoc",
"reST", "JSON",
"Scala", "JSONC",
"SCSS", "Markdown-Inline",
"Slim", "Markdown",
"Smithy", "proto",
"Solidity", "Python",
"SQL", "Regex",
"bazelrc", "Rust",
"Starlark", "TSX",
"Strace", "TypeScript",
"Swift", "YAML",
"Templ", "Astro",
"tmux", "Clojure",
"Twig", "CSharp",
"Typst", "Dart",
"Unison", "Elixir",
"V", "HEEX",
"Vala", "Elm",
"Verilog", "Erlang",
"VHS", "Gleam",
"Wgsl", "GLSL",
"WIT", "Haskell",
"XML", "HTML",
"C", "Lua",
"C++", "OCaml Interface",
"CSS", "OCaml",
"Go", "PHP",
"Go Mod", "PHPDoc",
"Go Work", "Prisma",
"JavaScript", "PureScript",
"JSDoc", "Racket",
"JSON", "ERB",
"JSONC", "Ruby",
"Markdown-Inline", "Scheme",
"Markdown", "Svelte",
"proto", "HCL",
"Regex", "Terraform Vars",
"Rust", "Terraform",
"TSX", "TOML",
"TypeScript", "Uiua",
"YAML", "Vue.js",
"Astro", "Zig",
"Clojure",
"CSharp",
"Dart",
"Elixir",
"HEEX",
"Elm",
"Erlang",
"Gleam",
"GLSL",
"Haskell",
"HTML",
"Lua",
"OCaml Interface",
"OCaml",
"PHP",
"PHPDoc",
"Prisma",
"PureScript",
"Racket",
"ERB",
"rbs",
"Ruby",
"Scheme",
"Svelte",
"HCL",
"Terraform Vars",
"Terraform",
"TOML",
"Uiua",
"Vue.js",
"Zig",
] ]
language_ids = { "Ada" = "ada", "Aiken" = "aiken", "Amber" = "amber", "AsciiDoc" = "asciidoc", "Assembly" = "asm", "AWK" = "awk", "Python" = "python", "Shell Script" = "bash", "Beancount" = "beancount", "Bend" = "bend", "Blade" = "blade", "Blueprint" = "blueprint", "BQN" = "BQN", "Brainfuck" = "brainfuck", "C3" = "c3", "Cadence" = "cadence", "Cairo" = "cairo", "Cap'n Proto" = "capnp", "Cedar" = "cedar", "CFEngine" = "cfengine", "CSV" = "csv", "Gherkin" = "gherkin", "CUE" = "cue", "Curry" = "curry", "D" = "d", "DBML" = "dbml", "Dockerfile" = "dockerfile", "Earthfile" = "earthfile", "EJS" = "ejs", "Elisp" = "elisp", "Handlebars" = "glimmer", "env" = "env", "Exograph" = "exograph", "Fish" = "fish", "Fortran" = "fortran", "FSharp" = "fsharp", "GDScript" = "gdscript", "Godot Resource" = "godot_resource", "Gemini" = "gemini", "Diff" = "diff", "Git Attributes" = "gitattributes", "Git Commit" = "gitcommit", "Git Config" = "gitconfig", "Git Ignore" = "gitignore", "Git Rebase" = "gitrebase", "Go Sum" = "gosum", "GraphQL" = "graphql", "Groovy" = "groovy", "GROQ" = "groq", "http" = "http", "ini" = "ini", "Java" = "java", "Jsonnet" = "jsonnet", "Julia" = "julia", "Just" = "just", "Kotlin" = "kotlin", "LaTeX" = "latex", "Ledger" = "ledger", "LESS" = "less", "LilyPond" = "lilypond", "LilyPond Scheme" = "lilypond_scheme", "Liquid" = "liquid", "LOG" = "log", "Lox" = "lox", "Luau" = "luau", "Make" = "make", "MATLAB" = "matlab", "Meson" = "meson", "Navi" = "navi", "Navi Stream" = "navi_stream", "CMake" = "cmake", "Nginx" = "nginx", "Nim" = "nim", "Nix" = "nix", "Noir" = "noir", "Nu" = "nu", "Odin" = "odin", "Pact" = "pact", "Perm" = "perm", "Pest" = "pest", "pica200" = "pica200", "Pkl" = "pkl", "Animation.txt" = "animationtxt", "Pdxinfo" = "pdxinfo", "PowerShell" = "powershell", "QML" = "qml", "R" = "r", "Rainbow CSV" = "csv", "Rainbow TSV" = "tsv", "RCL" = "rcl", "rego" = "rego", "ReScript" = "rescript", "Roc" = "roc", "RON" = "ron", "reST" = "rst", "Scala" = "scala", "SCSS" = "scss", "Slim" = "slim", "Smithy" = "smithy", "Solidity" = "solidity", "SQL" = "sql", "bazelrc" = "bazelrc", "Starlark" = "starlark", "Strace" = "strace", "Swift" = "swift", "Templ" = "templ", "tmux" = "tmux", "Twig" = "twig", "Typst" = "typst", "Unison" = "unison", "V" = "v", "Vala" = "vala", "Verilog" = "verilog", "VHS" = "vhs", "Wgsl" = "wgsl", "WIT" = "wit", "XML" = "xml", "C" = "c", "C++" = "cpp", "CSS" = "css", "Go" = "go", "Go Mod" = "gomod", "Go Work" = "gowork", "JavaScript" = "javascript", "JSDoc" = "jsdoc", "JSON" = "json", "JSONC" = "jsonc", "Markdown-Inline" = "markdown-inline", "Markdown" = "markdown", "proto" = "proto", "Regex" = "regex", "Rust" = "rust", "TSX" = "tsx", "TypeScript" = "typescript", "YAML" = "yaml", "Astro" = "astro", "Clojure" = "clojure", "CSharp" = "csharp", "Dart" = "dart", "Elixir" = "elixir", "HEEX" = "heex", "Elm" = "elm", "Erlang" = "erlang", "Gleam" = "gleam", "GLSL" = "glsl", "Haskell" = "haskell", "HTML" = "html", "Lua" = "lua", "OCaml Interface" = "ocaml-interface", "OCaml" = "ocaml", "PHP" = "php", "PHPDoc" = "phpdoc", "Prisma" = "prisma", "PureScript" = "purescript", "Racket" = "racket", "ERB" = "erb", "rbs" = "rbs", "Ruby" = "ruby", "Scheme" = "scheme", "Svelte" = "svelte", "HCL" = "hcl", "Terraform Vars" = "terraform-vars", "Terraform" = "terraform", "TOML" = "toml", "Uiua" = "uiua", "Vue.js" = "vue", "Zig" = "zig" } language_ids = { "AsciiDoc" = "asciidoc", "Assembly" = "asm", "Shell Script" = "bash", "Beancount" = "beancount", "Bend" = "bend", "Blade" = "blade", "BQN" = "BQN", "Brainfuck" = "brainfuck", "Cadence" = "cadence", "Cairo" = "cairo", "Cap'n Proto" = "capnp", "Cedar" = "cedar", "CFEngine" = "cfengine", "CSV" = "csv", "Gherkin" = "gherkin", "CUE" = "cue", "D" = "d", "DBML" = "dbml", "Earthfile" = "earthfile", "Elisp" = "elisp", "Handlebars" = "glimmer", "Exograph" = "exograph", "Fish" = "fish", "FSharp" = "fsharp", "GDScript" = "gdscript", "Godot Resource" = "godot_resource", "Gemini" = "gemini", "Diff" = "diff", "Git Attributes" = "gitattributes", "Git Commit" = "gitcommit", "Git Config" = "gitconfig", "Git Ignore" = "gitignore", "Git Rebase" = "gitrebase", "GraphQL" = "graphql", "Groovy" = "groovy", "GROQ" = "groq", "ini" = "ini", "Jsonnet" = "jsonnet", "Julia" = "julia", "Just" = "just", "LaTeX" = "latex", "Ledger" = "ledger", "LESS" = "less", "LilyPond" = "lilypond", "LilyPond Scheme" = "lilypond_scheme", "Liquid" = "liquid", "Lox" = "lox", "Luau" = "luau", "Make" = "make", "MATLAB" = "matlab", "Meson" = "meson", "Navi" = "navi", "Navi Stream" = "navi_stream", "Nim" = "nim", "Noir" = "noir", "Nu" = "nu", "Odin" = "odin", "Pact" = "pact", "Pest" = "pest", "pica200" = "pica200", "Pkl" = "pkl", "QML" = "qml", "R" = "r", "Rainbow CSV" = "csv", "Rainbow TSV" = "tsv", "rego" = "rego", "ReScript" = "rescript", "Roc" = "roc", "RON" = "ron", "Scala" = "scala", "SCSS" = "scss", "Smithy" = "smithy", "Solidity" = "solidity", "bazelrc" = "bazelrc", "Starlark" = "starlark", "Templ" = "templ", "Twig" = "twig", "Typst" = "typst", "Unison" = "unison", "V" = "v", "Vala" = "vala", "Verilog" = "verilog", "VHS" = "vhs", "Wgsl" = "wgsl", "WIT" = "wit", "XML" = "xml", "C" = "c", "C++" = "cpp", "CSS" = "css", "Go" = "go", "Go Mod" = "gomod", "Go Work" = "gowork", "JavaScript" = "javascript", "JSDoc" = "jsdoc", "JSON" = "json", "JSONC" = "jsonc", "Markdown-Inline" = "markdown-inline", "Markdown" = "markdown", "proto" = "proto", "Python" = "python", "Regex" = "regex", "Rust" = "rust", "TSX" = "tsx", "TypeScript" = "typescript", "YAML" = "yaml", "Astro" = "astro", "Clojure" = "clojure", "CSharp" = "csharp", "Dart" = "dart", "Elixir" = "elixir", "HEEX" = "heex", "Elm" = "elm", "Erlang" = "erlang", "Gleam" = "gleam", "GLSL" = "glsl", "Haskell" = "haskell", "HTML" = "html", "Lua" = "lua", "OCaml Interface" = "ocaml-interface", "OCaml" = "ocaml", "PHP" = "php", "PHPDoc" = "phpdoc", "Prisma" = "prisma", "PureScript" = "purescript", "Racket" = "racket", "ERB" = "erb", "Ruby" = "ruby", "Scheme" = "scheme", "Svelte" = "svelte", "HCL" = "hcl", "Terraform Vars" = "terraform-vars", "Terraform" = "terraform", "TOML" = "toml", "Uiua" = "uiua", "Vue.js" = "vue", "Zig" = "zig" }

View file

@ -3,7 +3,7 @@
fetch_files() { fetch_files() {
local repo_owner=$1 local repo_owner=$1
local repo_name=$2 local repo_name=$2
curl -Ls "https://api.github.com/repos/$repo_owner/$repo_name/git/trees/HEAD?recursive=1" -H "Authorization: Bearer ${GITHUB_TOKEN}" | jq -c -r '.tree[] | .path' curl -s "https://api.github.com/repos/$repo_owner/$repo_name/git/trees/main?recursive=1" -H "Authorization: Bearer ${GITHUB_TOKEN}" | jq -c -r '.tree[] | .path'
} }
process_language_files() { process_language_files() {
@ -25,7 +25,7 @@ process_language_files() {
continue continue
fi fi
name=$(curl -s "https://raw.githubusercontent.com/$repo_owner/$repo_name/HEAD/${file}" | grep -oP '^name = "\K[^"]*') name=$(curl -s "https://raw.githubusercontent.com/$repo_owner/$repo_name/main/${file}" | grep -oP '^name = "\K[^"]*')
id="${file%/config.toml}" id="${file%/config.toml}"
id="${id##*/}" id="${id##*/}"