SLua LSP for VS CodeLanguage tooling for Second Life SLua (Luau), with a bundled language server:
Getting startedUse VS Code 1.90 or later. Install the built VSIX using Extensions: Install
from VSIX…, then open a Definitions and settingsOfficial Second Life definitions are bundled for offline use. Failed updates retain the last accepted definitions and are logged in SLua LSP.
Custom definitions take precedence; relative paths resolve from the workspace. Use SLua: Update LSL Definitions to refresh explicitly and SLua: Show Active LSL Definitions to inspect the selected file. Source previewsSLua: Preview Preprocessed Source opens a read-only generated snapshot, including supported unsaved imports. F12 or SLua: Go to Original Source returns to a mapped source location. Changed/missing originals need a fresh preview; generated helpers have no source target. Set DiagnosticsQuick Fix can repair supported dot/colon call separators or suppress one semantic diagnostic code on the next line. Existing directives are preserved. Suppression does not repair a program; parse errors cannot be suppressed.
Analysis covers a bounded SLua profile rather than the complete Luau type solver. Experimental syntax can require simulator flags. Known-member definitions are supported; arbitrary field references/rename and cross-file rename are not. The extension does not synchronize with a viewer or execute scripts. See the repository CLI and compatibility guides for detailed boundaries. |