diff --git a/.gitignore b/.gitignore index ca2cb3a61b..c5e7b86423 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,4 @@ terraform-provider-cloudflare dist/* .envrc .flox/ +.vscode/private.env diff --git a/.vscode/launch.json b/.vscode/launch.json index d4f33a1945..c8586d4dec 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -25,6 +25,21 @@ "args": [ "-debug", ], + }, + { + "name": "Debug Selected Test", + "request": "launch", + "type": "go", + "args": [ + "-test.v", + "-test.run", + "^${selectedText}$" + ], + "mode": "auto", + "program": "${fileDirname}", + "env": {"PKG_NAME": "${relativeFileDirname}"}, + "envFile": "${workspaceFolder}/.vscode/private.env", + "showLog": true } ] }