mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
Add support for running DebugConfigurations with serverReadyAction (#197597)
* 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>
This commit is contained in:
@@ -158,6 +158,50 @@
|
||||
"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
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user