[feature] add vscode workspace config for linting + debugging (#588)

* vscode workspace config for debug run + linting

* ignore debug build file
This commit is contained in:
f0x52 2022-06-08 20:26:44 +02:00 committed by GitHub
parent 6f6e89e271
commit 4e6625ee2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 1 deletions

5
.gitignore vendored
View File

@ -20,4 +20,7 @@ dist/
web/assets/swagger.yaml web/assets/swagger.yaml
# exludes docker-volume from exemple/docker-compose # exludes docker-volume from exemple/docker-compose
example/docker-compose/docker-volume example/docker-compose/docker-volume
# excludes debug build
cmd/gotosocial/__debug_bin

16
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,16 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Package",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/cmd/gotosocial",
"args": [
"testrig", "start"
],
"cwd": "${workspaceFolder}"
}
]
}

6
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"go.lintTool":"golangci-lint",
"go.lintFlags": [
"--fast"
]
}