Visit https://slua.wlf.io for documentation and static links for latest downloads.
See here and here for more information about lua in secondlife.
Created with plenty of help and original findings from @gwigz
This project is not associated with Linden Lab
any use of trademarks or copyrighted terms (like Second Life
) is done in good
faith to explain clearly what this project is for, and not an attempt to
misrepresent
> SL External Editor: Enable
command
> SL External Editor: Update LSP Defs
command
Download a sl_lua_types.zip
from
here and extract
luau.code-snippets
file to your workspaces .vscode
folderWork is happening to add support for setting urls for definitions in the vscode extension, to allow automatic updating of the definitions. For now you will need to update them manually. When they change
Install vscode
Install this extension (github link)
Extract and place those files somewhere memorable (<user_dir>/.sl-luau/
for
instance)
Then Either globally or in your project add the 2 files to the options with the following config
"luau-lsp.types.definitionFiles": [
"~/.sl-luau/ll.d.luau"
],
"luau-lsp.types.documentationFiles": [
"~/.sl-luau/ll.d.json"
],
"luau-lsp.platform.type": "standard"
or through the UI
You may need to restart vscode or reload the ui
sl_selene_defs.yml
to your project
std
entry in the toml to reflect that
selene.toml
to the root of your project or write your own
with a format similar to this
std = "sl_selene_defs"
[rules]
global_usage = "allow"
shadowing = "allow"
[config]
empty_if = { comments_count = true }
unused_variable = { ignore_pattern = "^_|^touch_start$|^touch_end$|^touch$" }