From 1d1a9079ae9dc73588eae65f07aca319145ff678 Mon Sep 17 00:00:00 2001 From: Sunil Srivatsa Date: Fri, 6 Nov 2026 19:23:23 -0800 Subject: [PATCH] feat: register luau-lsp for omp sessions with the tern definitions --- .omp/lsp.json | 17 +++++++++++++++++ CONTRIBUTING.md | 4 +++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .omp/lsp.json diff --git a/.omp/lsp.json b/.omp/lsp.json new file mode 100644 index 0000000..ee65f97 --- /dev/null +++ b/.omp/lsp.json @@ -0,0 +1,17 @@ +{ + "servers": { + "luau-lsp": { + "command": "luau-lsp", + "args": ["lsp", "--definitions=@tern=types/tern.d.luau"], + "fileTypes": [".luau"], + "languageId": "luau", + "rootMarkers": ["plugin.toml"], + "settings": { + "luau-lsp": { + "platform": { "type": "standard" }, + "sourcemap": { "enabled": false } + } + } + } + } +} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ad63f83..16fa121 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,7 +16,9 @@ behavior claims are backed by evidence, privacy boundaries stay intact, and the `window.luau` headlessly in `tests/test_luau_harness.py` (release archives at [luau-lang/luau 0.745](https://github.com/luau-lang/luau/releases/tag/0.745), as in [`.github/workflows/ci.yml`](.github/workflows/ci.yml); set `LUAU=/path/to/luau` when not on `PATH`, or - `TERN_SIDEPULSE_REQUIRE_LUAU=1` to fail instead of skipping when `luau` is absent). + `TERN_SIDEPULSE_REQUIRE_LUAU=1` to fail instead of skipping when `luau` is absent). An Oh My Pi session started at + the repository root runs the same analysis while editing: [`.omp/lsp.json`](.omp/lsp.json) launches `luau-lsp lsp` + with these definitions on the standard (non-Roblox) platform, for diagnostics and hover on `.luau` files. - **Tern 0.9.12 on macOS**: required only for manual end-to-end checks against a live Tern window and SidePulse's agent monitor (`events.sock` and `relay-events.sock`); see [`docs/compatibility.md`](docs/compatibility.md) for the probe and integration checks.