feat: Add VS Code settings, tasks, and troubleshooting documentation for Go development

This commit is contained in:
GitHub Actions
2025-12-08 01:04:26 +00:00
parent 1b6751a651
commit 6a17dc6387
12 changed files with 547 additions and 62 deletions
+15 -22
View File
@@ -1,34 +1,27 @@
{
"python-envs.pythonProjects": [
{
"path": "",
"envManager": "ms-python.python:venv",
"packageManager": "ms-python.python:pip"
}
]
,
"gopls": {
"env": {
"GOWORK": "off",
"GOFLAGS": "-mod=mod",
"GOTOOLCHAIN": "auto"
"staticcheck": true,
"analyses": {
"unusedparams": true,
"nilness": true
},
"directoryFilters": [
"-**/pkg/mod/**",
"-**/go/pkg/mod/**",
"-**/root/go/pkg/mod/**"
]
"completeUnimported": true,
"matcher": "Fuzzy",
"verboseOutput": true
},
"go.buildFlags": ["-tags=ignore", "-mod=mod"],
"go.useLanguageServer": true,
"go.toolsEnvVars": {
"GOWORK": "off",
"GOFLAGS": "-mod=mod",
"GOTOOLCHAIN": "auto"
"GOMODCACHE": "${workspaceFolder}/.cache/go/pkg/mod"
},
"go.buildOnSave": "workspace",
"go.lintOnSave": "package",
"go.formatTool": "gofmt",
"files.watcherExclude": {
"**/pkg/mod/**": true,
"**/go/pkg/mod/**": true,
"**/root/go/pkg/mod/**": true
"**/root/go/pkg/mod/**": true,
"**/backend/data/**": true,
"**/frontend/dist/**": true
},
"search.exclude": {
"**/pkg/mod/**": true,