I had some trouble using go-sqlite3
while running tests in Visual Studio Code
and the Go-extension.
The Go compiler doesn’t adhere to the environment variables
CGO_ENABLED in launch.json.
Open the global settings.json using the Command Palette (CTRL + SHIFT + P) and add:
This shows using the Mingw (installed using Cygwin) compiler as well.