118 lines
2.8 KiB
JSON
118 lines
2.8 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": "ISC",
|
|
"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://git.isliberty.me/abbycin/topjs-debugger"
|
|
},
|
|
"bugs": {
|
|
"url": "https://git.isliberty.me/abbycin/topjs-debugger/issues"
|
|
},
|
|
"homepage": "https://git.isliberty.me/abbycin/topjs-debugger/src/master/README.md",
|
|
"scripts": {
|
|
"postinstall": "node ./node_modules/vscode/bin/install",
|
|
"build": "node ./build.js",
|
|
"package": "vsce package --baseImagesUrl https://git.isliberty.me/abbycin/topjs-debugger/src/master/",
|
|
"unpublish": "vsce unpublish",
|
|
"publish": "vsce publish --baseImagesUrl https://git.isliberty.me/abbycin/topjs-debugger/src/master/"
|
|
},
|
|
"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"
|
|
],
|
|
"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"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|