From 2cb8a13bd1b6cc43947188cbcfbf528bb74d4986 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Mon, 25 Nov 2024 08:15:43 +0000 Subject: [PATCH] feat(bins): include luau-lsp as tooling --- bins/luau-lsp/init.luau | 7 ++ bins/luau-lsp/pesde.lock | 169 +++++++++++++++++++++++++++++++++++++++ bins/luau-lsp/pesde.toml | 21 +++++ 3 files changed, 197 insertions(+) create mode 100644 bins/luau-lsp/init.luau create mode 100644 bins/luau-lsp/pesde.lock create mode 100644 bins/luau-lsp/pesde.toml diff --git a/bins/luau-lsp/init.luau b/bins/luau-lsp/init.luau new file mode 100644 index 0000000..8ab587d --- /dev/null +++ b/bins/luau-lsp/init.luau @@ -0,0 +1,7 @@ +-- TODO: Make use of returned exit code. Currently this script will get +-- required by a pesde generated linker script, and due to a lune bug, +-- exiting from within a required module causes a non-winding panic + +-- See https://github.com/lune-org/lune/pull/247 for more details + +require("./lune_packages/core")("JohnnyMorganz/luau-lsp", _G.PESDE_ROOT) diff --git a/bins/luau-lsp/pesde.lock b/bins/luau-lsp/pesde.lock new file mode 100644 index 0000000..bd6454c --- /dev/null +++ b/bins/luau-lsp/pesde.lock @@ -0,0 +1,169 @@ +name = "pesde/luau_lsp" +version = "1.35.0" +target = "lune" + +[graph."0x5eal/semver"."0.1.1 luau"] +resolved_ty = "peer" + +[graph."0x5eal/semver"."0.1.1 luau".target] +environment = "luau" +lib = "lib/init.luau" + +[graph."0x5eal/semver"."0.1.1 luau".dependencies] +"lukadev_0/option" = ["1.2.0 luau", "option"] +"lukadev_0/result" = ["1.2.0 luau", "result"] + +[graph."0x5eal/semver"."0.1.1 luau".pkg_ref] +ref_ty = "pesde" +name = "0x5eal/semver" +version = "0.1.1" +index_url = "https://github.com/daimond113/pesde-index" + +[graph."0x5eal/semver"."0.1.1 luau".pkg_ref.dependencies] +frktest = [{ name = "itsfrank/frktest", version = "^0.0.2", index = "https://github.com/daimond113/pesde-index", target = "lune" }, "dev"] +option = [{ name = "lukadev_0/option", version = "^1.2.0", index = "https://github.com/daimond113/pesde-index" }, "peer"] +result = [{ name = "lukadev_0/result", version = "^1.2.0", index = "https://github.com/daimond113/pesde-index" }, "peer"] + +[graph."0x5eal/semver"."0.1.1 luau".pkg_ref.target] +environment = "luau" +lib = "lib/init.luau" + +[graph."jiwonz/dirs"."0.1.2 lune"] +resolved_ty = "standard" + +[graph."jiwonz/dirs"."0.1.2 lune".target] +environment = "lune" +lib = "src/init.luau" + +[graph."jiwonz/dirs"."0.1.2 lune".dependencies] +"jiwonz/pathfs" = ["0.1.0 lune", "pathfs"] + +[graph."jiwonz/dirs"."0.1.2 lune".pkg_ref] +ref_ty = "pesde" +name = "jiwonz/dirs" +version = "0.1.2" +index_url = "https://github.com/daimond113/pesde-index" + +[graph."jiwonz/dirs"."0.1.2 lune".pkg_ref.dependencies] +pathfs = [{ name = "jiwonz/pathfs", version = "^0.1.0", index = "https://github.com/daimond113/pesde-index" }, "standard"] + +[graph."jiwonz/dirs"."0.1.2 lune".pkg_ref.target] +environment = "lune" +lib = "src/init.luau" + +[graph."jiwonz/pathfs"."0.1.0 lune"] +resolved_ty = "standard" + +[graph."jiwonz/pathfs"."0.1.0 lune".target] +environment = "lune" +lib = "init.luau" + +[graph."jiwonz/pathfs"."0.1.0 lune".pkg_ref] +ref_ty = "pesde" +name = "jiwonz/pathfs" +version = "0.1.0" +index_url = "https://github.com/daimond113/pesde-index" + +[graph."jiwonz/pathfs"."0.1.0 lune".pkg_ref.target] +environment = "lune" +lib = "init.luau" + +[graph."lukadev_0/option"."1.2.0 lune"] +direct = ["option", { name = "lukadev_0/option", version = "^1.2.0" }, "standard"] +resolved_ty = "standard" + +[graph."lukadev_0/option"."1.2.0 lune".target] +environment = "lune" +lib = "lib/init.luau" + +[graph."lukadev_0/option"."1.2.0 lune".pkg_ref] +ref_ty = "pesde" +name = "lukadev_0/option" +version = "1.2.0" +index_url = "https://github.com/daimond113/pesde-index" + +[graph."lukadev_0/option"."1.2.0 lune".pkg_ref.target] +environment = "lune" +lib = "lib/init.luau" + +[graph."lukadev_0/option"."1.2.0 luau"] +resolved_ty = "peer" + +[graph."lukadev_0/option"."1.2.0 luau".target] +environment = "luau" +lib = "lib/init.luau" + +[graph."lukadev_0/option"."1.2.0 luau".pkg_ref] +ref_ty = "pesde" +name = "lukadev_0/option" +version = "1.2.0" +index_url = "https://github.com/daimond113/pesde-index" + +[graph."lukadev_0/option"."1.2.0 luau".pkg_ref.target] +environment = "luau" +lib = "lib/init.luau" + +[graph."lukadev_0/result"."1.2.0 lune"] +direct = ["result", { name = "lukadev_0/result", version = "^1.2.0" }, "standard"] +resolved_ty = "standard" + +[graph."lukadev_0/result"."1.2.0 lune".target] +environment = "lune" +lib = "lib/init.luau" + +[graph."lukadev_0/result"."1.2.0 lune".pkg_ref] +ref_ty = "pesde" +name = "lukadev_0/result" +version = "1.2.0" +index_url = "https://github.com/daimond113/pesde-index" + +[graph."lukadev_0/result"."1.2.0 lune".pkg_ref.target] +environment = "lune" +lib = "lib/init.luau" + +[graph."lukadev_0/result"."1.2.0 luau"] +resolved_ty = "peer" + +[graph."lukadev_0/result"."1.2.0 luau".target] +environment = "luau" +lib = "lib/init.luau" + +[graph."lukadev_0/result"."1.2.0 luau".pkg_ref] +ref_ty = "pesde" +name = "lukadev_0/result" +version = "1.2.0" +index_url = "https://github.com/daimond113/pesde-index" + +[graph."lukadev_0/result"."1.2.0 luau".pkg_ref.target] +environment = "luau" +lib = "lib/init.luau" + +[graph."pesde/toolchainlib"."0.1.0 lune"] +direct = ["core", { workspace = "pesde/toolchainlib", version = "^" }, "standard"] +resolved_ty = "standard" + +[graph."pesde/toolchainlib"."0.1.0 lune".target] +environment = "lune" +lib = "src/init.luau" + +[graph."pesde/toolchainlib"."0.1.0 lune".dependencies] +"0x5eal/semver" = ["0.1.1 luau", "semver"] +"jiwonz/dirs" = ["0.1.2 lune", "dirs"] +"jiwonz/pathfs" = ["0.1.0 lune", "pathfs"] +"lukadev_0/option" = ["1.2.0 lune", "option"] +"lukadev_0/result" = ["1.2.0 lune", "result"] + +[graph."pesde/toolchainlib"."0.1.0 lune".pkg_ref] +ref_ty = "workspace" +path = "toolchainlib" + +[graph."pesde/toolchainlib"."0.1.0 lune".pkg_ref.dependencies] +dirs = [{ name = "jiwonz/dirs", version = "^0.1.1", index = "https://github.com/daimond113/pesde-index" }, "standard"] +option = [{ name = "lukadev_0/option", version = "^1.2.0", index = "https://github.com/daimond113/pesde-index" }, "peer"] +pathfs = [{ name = "jiwonz/pathfs", version = "^0.1.0", index = "https://github.com/daimond113/pesde-index" }, "standard"] +result = [{ name = "lukadev_0/result", version = "^1.2.0", index = "https://github.com/daimond113/pesde-index" }, "peer"] +semver = [{ name = "0x5eal/semver", version = "^0.1.1", index = "https://github.com/daimond113/pesde-index", target = "luau" }, "peer"] + +[graph."pesde/toolchainlib"."0.1.0 lune".pkg_ref.target] +environment = "lune" +lib = "src/init.luau" diff --git a/bins/luau-lsp/pesde.toml b/bins/luau-lsp/pesde.toml new file mode 100644 index 0000000..91c9eaf --- /dev/null +++ b/bins/luau-lsp/pesde.toml @@ -0,0 +1,21 @@ +name = "pesde/luau_lsp" +version = "1.35.0" +description = "Language Server Implementation for Luau" +authors = [ + "CompeyDev ", + "Johnny Morganz ", +] +repository = "https://github.com/pesde-pkg/tooling/tree/main/bins/luau-lsp" +includes = ["init.luau", "pesde.toml"] + +[target] +environment = "lune" +bin = "init.luau" + +[dependencies] +result = { name = "lukadev_0/result", version = "^1.2.0" } +option = { name = "lukadev_0/option", version = "^1.2.0" } +core = { workspace = "pesde/toolchainlib", version = "^" } + +[indices] +default = "https://github.com/daimond113/pesde-index"