Skip to content

Commit

Permalink
Add configurationSnippets, remove attach from init
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao committed Apr 11, 2024
1 parent d5be5ec commit e5fd635
Showing 1 changed file with 24 additions and 8 deletions.
32 changes: 24 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,32 @@
"type": "haxe",
"args": "active configuration"
}
}
],
"configurationSnippets": [
{
"label": "HashLink: Launch",
"description": "A new configuration for launch and debug.",
"body": {
"name": "${1:HashLink (launch)}",
"request": "launch",
"type": "hl",
"cwd": "^\"\\${workspaceFolder}\"",
"preLaunchTask": {
"type": "haxe",
"args": "active configuration"
}
}
},
{
"name": "HashLink (attach)",
"request": "attach",
"port": 6112,
"type": "hl",
"cwd": "${workspaceFolder}",
"preLaunchTask": {
"type": "haxe",
"args": "active configuration"
"label": "HashLink: Attach",
"description": "A new configuration for attaching to a running program.",
"body": {
"name": "${1:HashLink (attach)}",
"request": "attach",
"type": "hl",
"cwd": "^\"\\${workspaceFolder}\"",
"port": 6112
}
}
]
Expand Down

0 comments on commit e5fd635

Please sign in to comment.