Skip to content

Commit d7021db

Browse files
authored
fix: add configurationSnippets
Fixes #191. Add Configuration doesn't show PHP when selecting `Add Configuration` in a VS Code launch.json file PHP is no longer shown as an option. The new `configurationSnippets` resolves this. (#527)
1 parent c18654d commit d7021db

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

package.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,30 @@
271271
"cwd": "${fileDirname}",
272272
"port": 9000
273273
}
274+
],
275+
"configurationSnippets": [
276+
{
277+
"label": "PHP: Listen for Xdebug 2",
278+
"description": "Listen for incoming XDebug connections",
279+
"body": {
280+
"name": "Listen for Xdebug 2",
281+
"type": "php",
282+
"request": "launch",
283+
"port": 9000
284+
}
285+
},
286+
{
287+
"label": "PHP: Launch currently open script 2",
288+
"description": "Debug the currently open PHP script in CLI mode",
289+
"body": {
290+
"name": "Launch currently open script 2",
291+
"type": "php",
292+
"request": "launch",
293+
"program": "^\"${1:\\${file\\}}\"",
294+
"cwd": "^\"${2:\\${fileDirname\\}}\"",
295+
"port": 9000
296+
}
297+
}
274298
]
275299
}
276300
]

0 commit comments

Comments
 (0)