feat: Add VS Code settings, tasks, and troubleshooting documentation for Go development
This commit is contained in:
Vendored
+15
-22
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user