chore: configure lldebugger for tests

This commit is contained in:
Aire-One 2024-11-28 00:38:50 +01:00
parent 87a767705d
commit 09e56887d9
3 changed files with 25 additions and 0 deletions

View File

@ -23,6 +23,7 @@
"keygrabber",
"ldoc",
"leafo",
"lldebugger",
"luacheck",
"luacheckrc",
"luadoc",

18
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,18 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Busted",
"type": "lua-local",
"request": "launch",
"program": {
"command": "luarocks"
},
"args": ["test"]
// "ignorePatterns": "^/usr"
}
]
}

View File

@ -1,3 +1,9 @@
-- Enable lua-local-debugger
-- https://github.com/tomblind/local-lua-debugger-vscode
if os.getenv "LOCAL_LUA_DEBUGGER_VSCODE" == "1" then
require("lldebugger").start()
end
-- Fake awesome modules
package.loaded["gears.table"] = {
hasitem = function(t, item)