Skip to content

Commit edbf3cb

Browse files
Sync Roblox FFlags in CI to match VS Code luau-lsp behavior
1 parent 76f66ba commit edbf3cb

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,14 @@ jobs:
5252
- name: Run Tests
5353
run: |
5454
echo '{ "aliases": { "self": "src" } }' > .luaurc
55-
luau-lsp analyze --platform=standard --no-flags-enabled --flag LuauSolverV2=true src/init.test.luau
55+
56+
# Sync FFlags from Roblox (same as VS Code luau-lsp extension with fflags.sync: true)
57+
FLAGS="--no-flags-enabled"
58+
while IFS='=' read -r key value; do
59+
FLAGS="$FLAGS --flag $key=$value"
60+
done < <(curl -s "https://clientsettingscdn.roblox.com/v1/settings/application?applicationName=PCStudioApp" \
61+
| jq -r '.applicationSettings | to_entries[] | select(.key | test("^(FFlag|FInt|DFFlag|DFInt)Luau")) | "\(.key | sub("^(FFlag|FInt|DFFlag|DFInt)"; ""))=\(.value)"')
62+
63+
FLAGS="$FLAGS --flag LuauSolverV2=true"
64+
luau-lsp analyze --platform=standard $FLAGS src/init.test.luau
5665

0 commit comments

Comments
 (0)