From microsoft/vscode-go#2120 by @isidorn:
The launch.json that GO generates is attached at the end. This is cool and simple. However we can still do the following
{
// 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": "Launch",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${fileDirname}",
"env": {},
"args": []
}
]
}
Related upstream issue in VS Code: microsoft/vscode#62851
For prior discussion on this issue, please see microsoft/vscode-go#2120
From microsoft/vscode-go#2120 by @isidorn:
The
launch.jsonthat GO generates is attached at the end. This is cool and simple. However we can still do the followingonDebugInitialConfigurationsquickPickinDebugConfigurationProviderto ask the user if he would like to launch file, launch package, connect to server, launch test package, launch test function and based on that create a launch configuration.env,args. Both from the configurationSnippets and from the intial configurationsRelated upstream issue in VS Code: microsoft/vscode#62851
For prior discussion on this issue, please see microsoft/vscode-go#2120