Skip to content

Commit 6b24251

Browse files
authored
feat: add luau mode (Acode-Foundation#1927)
1 parent eb97e60 commit 6b24251

File tree

4 files changed

+846
-1
lines changed

4 files changed

+846
-1
lines changed

src/cm/lsp/serverRegistry.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,39 @@ function registerBuiltinServers(): void {
610610
},
611611
enabled: true,
612612
},
613+
// {
614+
// id: "luau",
615+
// label: "Luau",
616+
// useWorkspaceFolders: true,
617+
// languages: ["luau"],
618+
// transport: {
619+
// kind: "websocket",
620+
// },
621+
// launcher: {
622+
// bridge: {
623+
// kind: "axs",
624+
// command: "luau-lsp",
625+
// args: ["lsp"],
626+
// },
627+
// checkCommand: "which luau-lsp",
628+
// install: {
629+
// command: `apk add --no-cache curl unzip && \
630+
// ARCH="$(uname -m)" && \
631+
// case "$ARCH" in \
632+
// aarch64|arm64) ASSET="luau-lsp-linux-arm64.zip" ;; \
633+
// x86_64|amd64) ASSET="luau-lsp-linux-x86_64.zip" ;; \
634+
// *) echo "Unsupported architecture: $ARCH" >&2; exit 1 ;; \
635+
// esac && \
636+
// TMP_DIR="$(mktemp -d)" && \
637+
// cleanup() { rm -rf "$TMP_DIR"; } && \
638+
// trap cleanup EXIT && \
639+
// curl -fsSL "https://github.com/JohnnyMorganz/luau-lsp/releases/latest/download/$ASSET" -o "$TMP_DIR/luau-lsp.zip" && \
640+
// unzip -oq "$TMP_DIR/luau-lsp.zip" -d "$TMP_DIR" && \
641+
// install -Dm755 "$TMP_DIR/luau-lsp" /usr/local/bin/luau-lsp`,
642+
// },
643+
// },
644+
// enabled: true,
645+
// },
613646
{
614647
id: "eslint",
615648
label: "ESLint",

0 commit comments

Comments
 (0)