I have a project, where I use luarocks with modules directly installed in the projects folder (similar to how npm does it), which is handy for adding require paths, however what should I do, if they raise warnings?
I tried the following:
{
"Lua.runtime.version": "LuaJIT",
"Lua.workspace.library": [
"${3rd}/love2d/library",
"${3rd}/lfs/library",
"${workspaceFolder}/lua_modules"
],
"Lua.runtime.path": [
"src/?.lua",
"src/?/init.lua",
"doc/?.lua",
"${workspaceFolder}/share/lua/5.1/?.lua",
"${workspaceFolder}/share/lua/5.1/?/init.lua"
],
"Lua.workspace.ignoreDir": [
"extern",
"lua_modules" // Need option to ignore diagnostics, but keep definitions
],
"Lua.diagnostics.libraryFiles": "Disable",
}
I have a project, where I use luarocks with modules directly installed in the projects folder (similar to how npm does it), which is handy for adding require paths, however what should I do, if they raise warnings?
I tried the following:
{ "Lua.runtime.version": "LuaJIT", "Lua.workspace.library": [ "${3rd}/love2d/library", "${3rd}/lfs/library", "${workspaceFolder}/lua_modules" ], "Lua.runtime.path": [ "src/?.lua", "src/?/init.lua", "doc/?.lua", "${workspaceFolder}/share/lua/5.1/?.lua", "${workspaceFolder}/share/lua/5.1/?/init.lua" ], "Lua.workspace.ignoreDir": [ "extern", "lua_modules" // Need option to ignore diagnostics, but keep definitions ], "Lua.diagnostics.libraryFiles": "Disable", }