microsoft / vscode-go

An extension for VS Code which provides support for the Go language. We have moved to https://github.com/golang/vscode-go
Other
5.93k stars 648 forks source link

debug: use fileDirname for the default launch configuration #3174

Closed hyangah closed 4 years ago

hyangah commented 4 years ago

When "Start Debugging" or "Run without Debugging" runs without an explicit launch configuration (launch.json), we need to use the directory of the file as the program. That is consistent with the default GoDebugConfigurationProvider provides as the default DebugConfigurations. (${fileDirname}).

Update microsoft/vscode-go#1229 and microsoft/vscode-go#3096