on master help sign in
add lsp for graphql (#8492)

graphql-lsp has quite the strange name upstream, the project is technically called graphql-language-service, but the binary shipped is called graphql-lsp hence the strange naming scheme Signed-off-by: kjuulh <contact@kjuulh.io>

commit5cb76e74f9bd226f1b4757f478bf49873d9ecfe6 authorKasper Juul Hermansen <contact@kjuulh.io> dateMon 9 Oct 2023, 17:30 (3 years ago) parent96bbfb7
2 files changed+3−1
book/src/generated/lang-support.md+1−1 languages.toml+2
book/src/generated/lang-support.md+1−1
@@ -59,7 +59,7 @@
5959| gomod | ✓ | | | `gopls` |
6060| gotmpl | ✓ | | | `gopls` |
6161| gowork | ✓ | | | `gopls` |
62−| graphql | ✓ | | | |
62+| graphql | ✓ | | | `graphql-lsp` |
6363| hare | ✓ | | | |
6464| haskell | ✓ | ✓ | | `haskell-language-server-wrapper` |
6565| haskell-persistent | ✓ | | | |
languages.toml+2
@@ -30,6 +30,7 @@ forth-lsp = { command = "forth-lsp" }
3030fortls = { command = "fortls", args = ["--lowercase_intrinsics"] }
3131fsharp-ls = { command = "fsautocomplete", config = { AutomaticWorkspaceInit = true } }
3232gleam = { command = "gleam", args = ["lsp"] }
33+graphql-language-service = { command = "graphql-lsp", args = ["server", "-m", "stream"] }
3334haskell-language-server = { command = "haskell-language-server-wrapper", args = ["--lsp"] }
3435idris2-lsp = { command = "idris2-lsp" }
3536intelephense = { command = "intelephense", args = ["--stdio"] }
@@ -1513,6 +1514,7 @@ scope = "source.graphql"
15131514injection-regex = "graphql"
15141515file-types = ["gql", "graphql", "graphqls"]
15151516roots = []
1517+language-servers = [ "graphql-language-service" ]
15161518indent = { tab-width = 2, unit = " " }
15171519
15181520[[grammar]]