2024-05-03 15:23:36 -03:00
|
|
|
{ // lua-language-server config for checking
|
2024-06-02 15:23:26 -03:00
|
|
|
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
|
2024-05-03 15:23:36 -03:00
|
|
|
"runtime.version": "Lua 5.3",
|
|
|
|
"runtime.builtin": {
|
|
|
|
// Not all of the standard functionality is available
|
|
|
|
"coroutine": "disable",
|
|
|
|
"os": "disable",
|
|
|
|
"debug": "disable",
|
|
|
|
"ffi": "disable",
|
|
|
|
"jit": "disable",
|
|
|
|
"table.clear": "disable",
|
|
|
|
"table.new": "disable"
|
|
|
|
},
|
2024-06-02 15:23:26 -03:00
|
|
|
"workspace": {
|
|
|
|
// These lua scripts are not for running on AP
|
|
|
|
"ignoreDir": ["Tools/CHDK-Scripts/*", "modules/*", "libraries/AP_Scripting/tests/luacheck.lua", "lua-language-server/*"],
|
|
|
|
// Dont use gitignore, it results in skipping checks for in progress scripts running in SITL
|
|
|
|
"useGitIgnore": false
|
|
|
|
}
|
2024-05-03 15:23:36 -03:00
|
|
|
}
|