mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 03:47:56 +00:00
452b754c5e
* Add support for running DebugConfigurations with serverReadyAction This PR adds 'config' as an option for serverReadyAction. It runs similar to 'name', but if a configuration is generated on the fly, its easier to inject the debug configurations with the serverReadyAction. * Merge into startDebugSession method --------- Co-authored-by: Rob Lourens <roblourens@gmail.com>
221 lines
8.5 KiB
JSON
221 lines
8.5 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
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"markdownDescription": "%debug.server.ready.serverReadyAction.description%",
|
|
"default": {
|
|
"action": "startDebugging",
|
|
"config": {
|
|
"type": "node",
|
|
"request": "launch"
|
|
},
|
|
"killOnServerStop": false
|
|
},
|
|
"required": [
|
|
"config"
|
|
],
|
|
"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]+)"
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"markdownDescription": "%debug.server.ready.debugConfig.description%",
|
|
"default": {}
|
|
},
|
|
"killOnServerStop": {
|
|
"type": "boolean",
|
|
"markdownDescription": "%debug.server.ready.killOnServerStop.description%",
|
|
"default": false
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "18.x"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/microsoft/vscode.git"
|
|
}
|
|
}
|