Set up dev env.
This commit is contained in:
40
.vscode/launch.json
vendored
Normal file
40
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "CLI",
|
||||
"type": "go",
|
||||
"request": "launch",
|
||||
"mode": "debug",
|
||||
"program": "${workspaceFolder}",
|
||||
"console": "integratedTerminal",
|
||||
"env": {
|
||||
"GO_ENV": "development",
|
||||
"WILD_CENTRAL_ENV": "development"
|
||||
},
|
||||
"args": ["--help"],
|
||||
"cwd": "${workspaceFolder}"
|
||||
},
|
||||
{
|
||||
"name": "CLI with args",
|
||||
"type": "go",
|
||||
"request": "launch",
|
||||
"mode": "debug",
|
||||
"program": "${workspaceFolder}",
|
||||
"console": "integratedTerminal",
|
||||
"env": {
|
||||
"GO_ENV": "development",
|
||||
"WILD_CENTRAL_ENV": "development"
|
||||
},
|
||||
"args": "${input:cliArgs}",
|
||||
"cwd": "${workspaceFolder}"
|
||||
}
|
||||
],
|
||||
"inputs": [
|
||||
{
|
||||
"id": "cliArgs",
|
||||
"type": "promptString",
|
||||
"description": "CLI arguments (e.g., 'list instances' or 'create --name test')"
|
||||
}
|
||||
]
|
||||
}
|
||||
23
.vscode/settings.json
vendored
Normal file
23
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"go.gopath": "",
|
||||
"go.goroot": "",
|
||||
"go.useLanguageServer": true,
|
||||
|
||||
"gopls": {
|
||||
"experimentalWorkspaceModule": true,
|
||||
"build.experimentalWorkspaceModule": true
|
||||
},
|
||||
|
||||
"go.lintTool": "golangci-lint",
|
||||
"go.lintOnSave": "workspace",
|
||||
"go.formatTool": "goimports",
|
||||
"go.testOnSave": false,
|
||||
|
||||
"[go]": {
|
||||
"editor.formatOnSave": true,
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.organizeImports": "explicit"
|
||||
},
|
||||
"editor.suggest.snippetsPreventQuickSuggestions": false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user