mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 13:29:44 +00:00
![Babak K. Shandiz](/assets/img/avatar_default.png)
* 🎁 Add `killOnServerStop` to schema Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com> * 📜 Add description for `killOnServerStop` Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com> * 🔨 Stop created debug session on server stop Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com> * 🔨 Push kill listeners into another disposable container Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com> * 🐛 Prevent leak when new debug session fails to start Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com> * 🔨 Use more verbose name for debug session tracker ID Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com> Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
178 lines
6.7 KiB
JSON
178 lines
6.7 KiB
JSON
{
|
|
"name": "debug-server-ready",
|
|
"displayName": "%displayName%",
|
|
"description": "%description%",
|
|
"version": "1.0.0",
|
|
"publisher": "vscode",
|
|
"license": "MIT",
|
|
"engines": {
|
|
"vscode": "^1.32.0"
|
|
},
|
|
"icon": "media/icon.png",
|
|
"activationEvents": [
|
|
"onDebugResolve"
|
|
],
|
|
"capabilities": {
|
|
"virtualWorkspaces": false,
|
|
"untrustedWorkspaces": {
|
|
"supported": true
|
|
}
|
|
},
|
|
"enabledApiProposals": [
|
|
"terminalDataWriteEvent"
|
|
],
|
|
"main": "./out/extension",
|
|
"scripts": {
|
|
"compile": "gulp compile-extension:debug-server-ready",
|
|
"watch": "gulp watch-extension:debug-server-ready"
|
|
},
|
|
"contributes": {
|
|
"debuggers": [
|
|
{
|
|
"type": "*",
|
|
"configurationAttributes": {
|
|
"launch": {
|
|
"properties": {
|
|
"serverReadyAction": {
|
|
"oneOf": [
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"markdownDescription": "%debug.server.ready.serverReadyAction.description%",
|
|
"default": {
|
|
"action": "openExternally",
|
|
"killOnServerStop": false
|
|
},
|
|
"properties": {
|
|
"action": {
|
|
"type": "string",
|
|
"enum": [
|
|
"openExternally"
|
|
],
|
|
"enumDescriptions": [
|
|
"%debug.server.ready.action.openExternally.description%"
|
|
],
|
|
"markdownDescription": "%debug.server.ready.action.description%",
|
|
"default": "openExternally"
|
|
},
|
|
"pattern": {
|
|
"type": "string",
|
|
"markdownDescription": "%debug.server.ready.pattern.description%",
|
|
"default": "listening on port ([0-9]+)"
|
|
},
|
|
"uriFormat": {
|
|
"type": "string",
|
|
"markdownDescription": "%debug.server.ready.uriFormat.description%",
|
|
"default": "http://localhost:%s"
|
|
},
|
|
"killOnServerStop": {
|
|
"type": "boolean",
|
|
"markdownDescription": "%debug.server.ready.killOnServerStop.description%",
|
|
"default": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"markdownDescription": "%debug.server.ready.serverReadyAction.description%",
|
|
"default": {
|
|
"action": "debugWithEdge",
|
|
"pattern": "listening on port ([0-9]+)",
|
|
"uriFormat": "http://localhost:%s",
|
|
"webRoot": "${workspaceFolder}",
|
|
"killOnServerStop": false
|
|
},
|
|
"properties": {
|
|
"action": {
|
|
"type": "string",
|
|
"enum": [
|
|
"debugWithChrome",
|
|
"debugWithEdge"
|
|
],
|
|
"enumDescriptions": [
|
|
"%debug.server.ready.action.debugWithChrome.description%"
|
|
],
|
|
"markdownDescription": "%debug.server.ready.action.description%",
|
|
"default": "debugWithEdge"
|
|
},
|
|
"pattern": {
|
|
"type": "string",
|
|
"markdownDescription": "%debug.server.ready.pattern.description%",
|
|
"default": "listening on port ([0-9]+)"
|
|
},
|
|
"uriFormat": {
|
|
"type": "string",
|
|
"markdownDescription": "%debug.server.ready.uriFormat.description%",
|
|
"default": "http://localhost:%s"
|
|
},
|
|
"webRoot": {
|
|
"type": "string",
|
|
"markdownDescription": "%debug.server.ready.webRoot.description%",
|
|
"default": "${workspaceFolder}"
|
|
},
|
|
"killOnServerStop": {
|
|
"type": "boolean",
|
|
"markdownDescription": "%debug.server.ready.killOnServerStop.description%",
|
|
"default": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"markdownDescription": "%debug.server.ready.serverReadyAction.description%",
|
|
"default": {
|
|
"action": "startDebugging",
|
|
"name": "<launch browser config name>",
|
|
"killOnServerStop": false
|
|
},
|
|
"required": [
|
|
"name"
|
|
],
|
|
"properties": {
|
|
"action": {
|
|
"type": "string",
|
|
"enum": [
|
|
"startDebugging"
|
|
],
|
|
"enumDescriptions": [
|
|
"%debug.server.ready.action.startDebugging.description%"
|
|
],
|
|
"markdownDescription": "%debug.server.ready.action.description%",
|
|
"default": "startDebugging"
|
|
},
|
|
"pattern": {
|
|
"type": "string",
|
|
"markdownDescription": "%debug.server.ready.pattern.description%",
|
|
"default": "listening on port ([0-9]+)"
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"markdownDescription": "%debug.server.ready.debugConfigName.description%",
|
|
"default": "Launch Browser"
|
|
},
|
|
"killOnServerStop": {
|
|
"type": "boolean",
|
|
"markdownDescription": "%debug.server.ready.killOnServerStop.description%",
|
|
"default": false
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "16.x"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/microsoft/vscode.git"
|
|
}
|
|
}
|