topjs-debugger/package.json
2019-05-09 09:06:50 +08:00

118 lines
2.6 KiB
JSON

{
"name": "topjs-debugger",
"displayName": "TopJS Debugger",
"version": "0.0.1",
"publisher": "AbbyCin",
"description": "TopJS debugger extension for VS Code.",
"author": {
"name": "AbbyCin",
"email": "abbytsing@gmail.com"
},
"license": "MIT",
"keywords": [
"multi-root ready"
],
"engines": {
"vscode": "^1.30.0",
"node": "^8.9.3"
},
"icon": "favicon.png",
"categories": [
"Debuggers"
],
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/vscode-mock-debug.git"
},
"bugs": {
"url": "https://github.com/Microsoft/vscode-mock-debug/issues"
},
"scripts": {
"postinstall": "node ./node_modules/vscode/bin/install",
"build": "node ./build.js",
"package": "vsce package",
"publish": "vsce publish"
},
"dependencies": {
"await-notify": "^1.0.1",
"command-exists": "^1.2.8",
"vscode-debugadapter": "^1.33.0"
},
"devDependencies": {
"@types/node": "8.9.3",
"vscode": "1.1.21",
"vscode-debugadapter-testsupport": "1.33.0",
"vsce": "1.53.2",
"ncp": "2.0.0"
},
"main": "./src/extension",
"activationEvents": [
"onDebug",
"onCommand:extension.topjs-debugger.getProgramPath"
],
"contributes": {
"breakpoints": [
{
"language": "javascript"
}
],
"debuggers": [
{
"type": "topjs",
"label": "TopJS Debugger",
"program": "./src/debugAdapter.js",
"runtime": "node",
"configurationAttributes": {
"launch": {
"required": [
"program",
"runtimeExecutable",
"port"
],
"properties": {
"program": {
"type": "string",
"description": "Absolute path to a javascript file.",
"default": "${workspaceFolder}/${command:getProgramPath}"
},
"port": {
"type": "number",
"descrition": "Port for debugger backend.",
"default": 30992
},
"runtimeExecutable": {
"type": "string",
"default": "topjs3"
}
}
}
},
"initialConfigurations": [
{
"type": "topjs",
"request": "launch",
"name": "Launch Debugger",
"program": "${workspaceFolder}/${command:getProgramPath}"
}
],
"configurationSnippets": [
{
"label": "TopJS Debug: Launch",
"description": "A new configuration for 'debugging' a user selected javascript file.",
"body": {
"type": "topjs",
"request": "launch",
"name": "Launch Debugger2",
"program": "^\"\\${workspaceFolder}/\\${command:getProgramPath}\""
}
}
],
"variables": {
"getProgramPath": "extension.topjs-debugger.getProgramPath"
}
}
]
}
}