Maybe I'm barking up the wrong tree, but it seems the go's delve debugger expects to get a json field "arguments" in the "launch" dap message, and it uses the "dlvFlags" ... instead of/ignoring the "dlvFlags" in its configuration. If I specify "dlvFlags" in launch.json alongside the "env" and "args", delve does seem to receive those but issues the warning "Warning: build flags ignored with dap; specify via launch/attach request instead" ... looking into the delve source code it seems to expect these via the incoming dap protocol's launch command json containing an "arguments" member.
I'm asking here because this seems like possibly a generic vscode issue, since the DAP protocol is standard?
I'm trying to pass dlvFlags to the remote dap go delve instance. Ultimately the point of this is so that the debugged program is built with --buildFlags -mod=mod