Add lua support through local-lua-debugger-vscode
Add the lua adapter to gadgets.py and installer.py, update the README.md file and create basic tests using lua, luajit and love.
This commit is contained in:
parent
2bdb30a45e
commit
2819e224e7
7 changed files with 185 additions and 4 deletions
|
|
@ -495,4 +495,31 @@ GADGETS = {
|
|||
},
|
||||
},
|
||||
},
|
||||
'local-lua-debugger-vscode': {
|
||||
'language': 'lua',
|
||||
'enabled': False,
|
||||
'repo': {
|
||||
'url': 'https://github.com/tomblind/local-lua-debugger-vscode.git',
|
||||
'ref': 'release-0.2.0'
|
||||
},
|
||||
'all': {
|
||||
'version': '0.2.0',
|
||||
},
|
||||
'do': lambda name, root, gadget: installer.InstallLuaLocal( name,
|
||||
root,
|
||||
gadget ),
|
||||
'adapters': {
|
||||
'lua-local': {
|
||||
'command': [
|
||||
'node',
|
||||
'${gadgetDir}/local-lua-debugger-vscode/extension/debugAdapter.js'
|
||||
],
|
||||
'name': 'lua-local',
|
||||
'configuration': {
|
||||
'interpreter': 'lua',
|
||||
'extensionPath': '${gadgetDir}/local-lua-debugger-vscode'
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -425,6 +425,13 @@ def InstallNodeDebug( name, root, gadget ):
|
|||
MakeSymlink( name, root )
|
||||
|
||||
|
||||
def InstallLuaLocal( name, root, gadget ):
|
||||
with CurrentWorkingDir( root ):
|
||||
CheckCall( [ 'npm', 'install' ] )
|
||||
CheckCall( [ 'npm', 'run', 'build' ] )
|
||||
MakeSymlink( name, root )
|
||||
|
||||
|
||||
def InstallGagdet( name: str,
|
||||
gadget: dict,
|
||||
manifest: Manifest,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue