Support multiple files on GoDebug (#44)

Running `GoDebug` on `main()` will fail if there are multiple files in `package main` since the other files won't be compiled along with the target file.
This commit is contained in:
Vincent Xiao 2021-11-21 18:00:04 -08:00 committed by GitHub
parent f59422008a
commit 21017717c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,7 +145,7 @@ M.run = function(...)
dap.configurations.go = {dap_cfg}
dap.continue()
else
dap_cfg.program = "${file}"
dap_cfg.program = sep .. "${relativeFileDirname}"
dap_cfg.args = args
dap.configurations.go = {dap_cfg}
dap.continue()