This documentation covers the Lua API for Desynced and is to be used with Sumneko's Lua Language Server, using LuaCATS annotation system.
Follow the following steps to get started with this Addon.
- Open (or download and install Visual Studio Code).
- Install the Lua Language Server's Visual Studio Code extension.
- Clone this repo.
- Open the mods folder of Desynced with Visual Studio Code.
- Inside the mods folder of Desynced, create a new folder called
.vscode
if it doesn't exist. - Inside of the
.vscode
directory, create a file calledsettings.json
- Paste the following json into this file, and replace
Lua.workspace.library
with the path this repo has been cloned to.
{
"Lua.runtime.version": "Lua 5.4",
"Lua.workspace.checkThirdParty": false,
"Lua.workspace.library": [
"path\\to\\DesyncedLLSAddon\\library"
]
}