加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
package.json 15.96 KB
一键复制 编辑 原始数据 按行查看 历史
stuartwang 提交于 2020-11-19 11:31 . 更新package
{
"name": "luapanda",
"displayName": "LuaPanda",
"version": "3.2.0",
"publisher": "stuartwang",
"description": "lua debug and code tools for VS Code.",
"author": {
"name": "stuartwang",
"email": "3030078087@qq.com"
},
"license": "BSD",
"keywords": [
"lua",
"debug",
"analyzer",
"luaanalyzer",
"luadebug",
"lua debug",
"lua panda"
],
"engines": {
"vscode": "^1.25.0",
"node": "^7.9.0"
},
"icon": "res/icon/luapanda_logo.png",
"categories": [
"Debuggers",
"Programming Languages"
],
"repository": {
"type": "git",
"url": "https://github.com/Tencent/LuaPanda.git"
},
"bugs": {
"url": "https://github.com/Tencent/LuaPanda.git"
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./src",
"watch": "tsc -watch -p ./src",
"package": "vsce package",
"publish": "vsce package"
},
"dependencies": {
"await-notify": "1.0.1",
"lua-fmt": "^2.6.0",
"luaparse": "^0.2.1",
"path-reader": "^1.1.0",
"univac": "0.0.8",
"urlencode": "^1.1.0",
"vscode-debugadapter": "1.27.0",
"vscode-debugprotocol": "1.27.0",
"vscode-languageclient": "^5.2.1",
"vscode-languageserver": "^5.2.1"
},
"devDependencies": {
"@types/mocha": "2.2.48",
"@types/node": "7.0.55",
"@types/vscode": "^1.25.0",
"mocha": "5.0.1",
"tslint": "5.9.1",
"typescript": "2.6.2",
"vsce": "1.37.5",
"vscode-debugadapter-testsupport": "1.27.0"
},
"main": "./out/extension",
"activationEvents": [
"onLanguage:lua",
"onDebug"
],
"contributes": {
"breakpoints": [
{
"language": "lua"
}
],
"commands": [
{
"command": "luapanda.reloadLuaDebug",
"title": "Reload LuaPanda"
},
{
"command": "luapanda.LuaGarbageCollect",
"title": "LuaGarbageCollect"
},
{
"command": "luapanda.openSettingsPage",
"title": "openSettingsPage"
}
],
"configuration": {
"type": "object",
"title": "lua-panda configuration",
"properties": {
"lua_analyzer.codeLinting.enable": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Enable/Disable code lingting. This is the master switch of code linting."
},
"lua_analyzer.codeLinting.luacheckPath": {
"scope": "resource",
"type": "string",
"default": "",
"description": "The laucheck executable file path, use plugin default config if not set."
},
"lua_analyzer.codeLinting.luaVersion": {
"scope": "resource",
"type": "string",
"enum": [
"5.1",
"5.3",
"5.1+5.3"
],
"default": "5.1+5.3",
"description": "Set standard globals for luacheck."
},
"lua_analyzer.codeLinting.checkWhileTyping": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Controls wether to check the syntax while typing."
},
"lua_analyzer.codeLinting.checkAfterSave": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Controls wether to check the syntax after file saved."
},
"lua_analyzer.codeLinting.maxNumberOfProblems": {
"scope": "resource",
"type": "number",
"default": 100,
"description": "Controls the maximum number of problems produced by the luacheck."
},
"lua_analyzer.codeLinting.maxLineLength": {
"scope": "resource",
"type": "number",
"default": 120,
"description": "Set maximum allowed line length (default: 120)."
},
"lua_analyzer.codeLinting.ignoreFolderRegularExpression": {
"scope": "resource",
"type": "string",
"default": ".*/res/lua/\\w+\\.lua;.*vscode/LuaPanda/IntelliSenseRes/;",
"description": "The regular expressions used to ignore files in some specific folders. Use semicolons to separate different regular expressions."
},
"lua_analyzer.codeLinting.ignoreErrorCode": {
"scope": "resource",
"type": "string",
"default": "",
"description": "Used to ignore some warnings or errors. Use semicolons to separate different error codes. For example, 211 means \"unused local variable\", you will see \"unused variable 'xxx' lua-analyzer(211)\" in the problems window. View https://luacheck.readthedocs.io/en/stable/warnings.html for more information."
},
"lua_analyzer.codeLinting.ignoreGlobal": {
"scope": "resource",
"type": "string",
"default": "UnityEngine;com",
"description": "Used to ignore global variable for luacheck. Use semicolons to separate different variables."
},
"lua_analyzer.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the language server."
}
}
},
"snippets": [
{
"language": "lua",
"path": "./res/snippets/snippets.json"
}
],
"debuggers": [
{
"type": "lua",
"label": "LuaPanda",
"program": "./out/debug/debugAdapter.js",
"runtime": "node",
"configurationAttributes": {
"attach": {
"properties": {
"stopOnEntry": {
"type": "boolean",
"description": "After the debugger connect, it automatically stops at the first line of code called. \n调试器启动后自动停止在调用的第一行代码处。",
"default": true
},
"cwd": {
"type": "string",
"description": "exactltPathMode : 拼接路径 | autoPathMode : workspace 路径。",
"default": "${workspaceFolder}"
},
"isNeedB64EncodeStr": {
"type": "boolean",
"description": "Whether use base64 encoding for transmit strings. default true. \n是否使用base64编码传输字符串,默认请开启。",
"default": true
},
"luaFileExtension": {
"type": "string",
"description": "Lua file suffix. \nLua文件后缀。",
"default": ""
},
"pathCaseSensitivity": {
"type": "boolean",
"description": "File path is case sensitive, default true. \n文件路径大小写敏感, 默认true。",
"default": true
},
"connectionPort": {
"type": "number",
"description": "The port number of the connection. Default is 8818. \n设置连接的端口号,默认8818。",
"default": 8818
},
"autoReconnect": {
"type": "boolean",
"description": "When disconnected by the lua end, VSCode automatically waits for new reconnection. \n当被lua端断开连接时,VSCode自动等待重连。",
"default": true
},
"TempFilePath": {
"type": "string",
"description": "Temporary file storage path generated during debugging, please ensure this folder exists. \n调试产生的临时文件存放路径,请确保文件夹存在。",
"default": "${workspaceFolder}"
},
"rootFolder": {
"type": "string",
"description": "记录vscode打开的目录,不要修改它的值,需用它找到 launch.json",
"default": "${workspaceFolder}"
},
"logLevel": {
"type": "number",
"description": "Log level. 0: All information(for developer); 1: Only necessary information (default); 2: Only error. \n日志等级. 0:all所有信息(面向开发者); 1:info仅必要信息(默认); 2:error仅错误。",
"default": 1
},
"useCHook": {
"type": "boolean",
"description": "Use C Hook module to improve efficiency. The default is true. If set false debug with lua hook. \n使用C Hook模块, 提高运行效率。默认true。设置为false则使用 lua hook 调试。",
"default": true
},
"packagePath": {
"type": "array",
"description": "Path added to package.path at runtime, such as /Script/?.lua. \n运行时加入package.path的路径, 如 /Script/?.lua。",
"default": []
},
"luaPath": {
"type": "string",
"description": "Lua command path and file name such as C:/lua5.3/lua.exe. \nlua命令的路径和文件名. 如 C:/lua5.3/lua.exe。 ",
"default": ""
},
"docPathReplace": {
"type": "array",
"description": "被调试文件和VSCode中加载文件路径不一致时,通过此项设置,完成路径替换。输入格式[\"被替换掉的路径\", \"新路径\"]。",
"default": []
},
"autoPathMode": {
"type": "boolean",
"description": "Whether to use automatic path mode. \n是否使用自动路径模式。",
"default": true
},
"updateTips": {
"type": "boolean",
"description": "Whether open LuaPanda automatic upgrade prompt. \n是否打开 LuaPanda 自动升级提示。",
"default": true
},
"tag": {
"type": "string",
"enum": [
"normal",
"attach",
"independent_file"
],
"description": "Mark run mode, don't modify it. There are three modes: normal, attach, independent_file. \n标记运行方式,请勿修改。 有三种模式 normal , attach , independent_file",
"default": "normal"
},
"dbCheckBreakpoint": {
"type": "string",
"description": "If adapter is client , the IP to connect. Default is '127.0.0.1'。",
"default": "127.0.0.1"
},
"distinguishSameNameFile": {
"type": "boolean",
"description": "Whether distinguish breakpoint in files with same name",
"default": false
},
"truncatedOPath": {
"type": "string",
"description": " ",
"default": ""
},
"DevelopmentMode": {
"type": "boolean",
"description": "Whether enter development mode",
"default": false
}
}
},
"launch": {
"properties": {
"program": {
"type": "string",
"description": "Path to executable file which launched with debugger(not a lua file), default \"\". \n随调试器启动的可执行文件路径(非lua文件), 如无可以填\"\"。",
"default": ""
},
"args": {
"type": "array",
"description": "Program execution parameters, the structure is an array of strings. \nprogram 执行时需要的参数, 结构是一个字符串数组。",
"default": []
},
"stopOnEntry": {
"type": "boolean",
"description": "After the debugger connect, it automatically stops at the first line of code called. \n调试器启动后自动停止在调用的第一行代码处。",
"default": true
},
"cwd": {
"type": "string",
"description": "exactltPathMode : 拼接路径 | autoPathMode : workspace 路径。",
"default": "${workspaceFolder}"
},
"isNeedB64EncodeStr": {
"type": "boolean",
"description": "Whether use base64 encoding for transmit strings. default true. \n是否使用base64编码传输字符串,默认请开启。",
"default": true
},
"luaFileExtension": {
"type": "string",
"description": "Lua file suffix. \nLua文件后缀。",
"default": ""
},
"pathCaseSensitivity": {
"type": "boolean",
"description": "File path is case sensitive, default true. \n文件路径大小写敏感, 默认true。",
"default": true
},
"connectionPort": {
"type": "number",
"description": "The port number of the connection. Default is 8818. \n设置连接的端口号,默认8818。",
"default": 8818
},
"autoReconnect": {
"type": "boolean",
"description": "When disconnected by the lua end, VSCode automatically waits for new reconnection. \n当被lua端断开连接时,VSCode自动等待重连。",
"default": true
},
"rootFolder": {
"type": "string",
"description": "记录vscode打开的目录,可以利用它找到 launch.json",
"default": "${workspaceFolder}"
},
"TempFilePath": {
"type": "string",
"description": "Temporary file storage path generated during debugging, please ensure this folder exists. \n调试产生的临时文件存放路径,请确保文件夹存在。",
"default": "${workspaceFolder}"
},
"logLevel": {
"type": "number",
"description": "Log level. 0: All information(for developer); 1: Only necessary information (default); 2: Only error. \n日志等级. 0:all所有信息(面向开发者); 1:info仅必要信息(默认); 2:error仅错误。",
"default": 1
},
"useCHook": {
"type": "boolean",
"description": "Use C Hook module to improve efficiency. The default is true. If set false debug with lua hook. \n使用C Hook模块, 提高运行效率。默认true。设置为false则使用 lua hook 调试。",
"default": true
},
"packagePath": {
"type": "array",
"description": "Path added to package.path at runtime, such as /Script/?.lua. \n运行时加入package.path的路径, 如 /Script/?.lua。",
"default": []
},
"luaPath": {
"type": "string",
"description": "Lua command path and file name such as C:/lua5.3/lua.exe. \nlua命令的路径和文件名. 如 C:/lua5.3/lua.exe。 ",
"default": ""
},
"docPathReplace": {
"type": "array",
"description": "被调试文件和VSCode中加载文件路径不一致时,通过此项设置,完成路径替换。输入格式[\"被替换掉的路径\", \"新路径\"]。",
"default": []
},
"autoPathMode": {
"type": "boolean",
"description": "Whether to use automatic path mode. \n是否使用自动路径模式。",
"default": true
},
"updateTips": {
"type": "boolean",
"description": "Whether open LuaPanda automatic upgrade prompt. \n是否打开 LuaPanda 自动升级提示。",
"default": true
},
"tag": {
"type": "string",
"description": "Mark run mode, don't modify it. There are three modes: normal, attach, independent_file. \n标记运行方式,请勿修改。 有三种模式 normal , attach , independent_file",
"default": "normal"
},
"VSCodeAsClient": {
"type": "boolean",
"description": "Usually adapter as Server, lua process as Client. this mode is invert these. Please also set connectionIP。",
"default": false
},
"connectionIP": {
"type": "string",
"description": "If adapter is client , the IP to connect. Default is '127.0.0.1'。",
"default": "127.0.0.1"
},
"dbCheckBreakpoint": {
"type": "boolean",
"description": "Whether double check breakpoint hit",
"default": true
},
"distinguishSameNameFile": {
"type": "boolean",
"description": "Whether distinguish breakpoint in files with same name",
"default": false
},
"truncatedOPath": {
"type": "string",
"description": " ",
"default": ""
},
"DevelopmentMode": {
"type": "boolean",
"description": "Whether enter development mode",
"default": false
},
"description": {
"type": "string",
"description": "当前模式的描述",
"default": ""
}
}
}
},
"initialConfigurations": [
{
"type": "lua",
"request": "launch",
"tag": "normal",
"name": "LuaPanda",
"description": "通用模式,通常调试项目请选择此模式 | launchVer:3.2.0",
"cwd": "${workspaceFolder}",
"luaFileExtension": "",
"connectionPort": 8818,
"stopOnEntry": true,
"useCHook": true,
"autoPathMode": true
},
{
"type": "lua",
"request": "launch",
"tag": "independent_file",
"name": "LuaPanda-IndependentFile",
"description": "独立文件调试模式,使用前请参考文档",
"luaPath": "",
"packagePath": [],
"luaFileExtension": "",
"connectionPort": 8820,
"stopOnEntry": true,
"useCHook": true
}
]
}
]
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化