add launch and tasks

This commit is contained in:
2026-06-18 19:38:58 +07:00
parent 85153ae4e5
commit c82c01fb36
3 changed files with 71 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceFolder}/cmd/${REPO_NAME_SNAKE}",
"args": [
"--local"
],
"cwd": "${workspaceFolder}",
"buildFlags": "-tags local"
},
{
"name": "Launch for tests",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceFolder}/cmd/${REPO_NAME_SNAKE}",
"args": [
"--local"
],
"cwd": "${workspaceFolder}",
"buildFlags": "-tags local",
"env": {
"STORY_FILENAME": "./internal/tests/story.json",
"DB_FILENAME": "./internal/tests/store.db"
}
}
]
}