F5 should utilize launch.json from your .vscode - folder so I assume that you are not utilizing the correct task. launch.json is usually generated automatically by vscode when you start to debug first time.
launch.json
.vscode
See more details from here