Closed
Description
Hey,
VSCode dev here. This milestone I am looking into simplifing generated launch.json
for various extensions microsoft/vscode#62851
The launch.json
that PHP generates is attached at the end. I think it is cool and not too complex but we can improve this a bit
- How often do user change
port
, should it be removed. Can you auto detect what port to use, to potentially append it in the resolveDebugConifguraiton call. The resolve could also nicely append the cwd based on the program attribute and the user should not be worried about that one - Use quickPick to allow user to select what portion of launch.json is created #785
- You are not contributing
configurationSnippets
. These snippets make it easier for the user to add new launch configurations. Here's an example how node is doing it
If you agree with the suggestions I am making here I am also here to help with any potential questions you might have. The changes should not require a lot of work but will simplify the flow a lot imho. It should be much less complex and not too much like a wizard experience
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9000
}
]
}