Repository navigation
Expand file tree
/
Copy pathdevcontainer.json
More file actions
78 lines (78 loc) · 2.59 KB
/
Copy pathdevcontainer.json
File metadata and controls
78 lines (78 loc) · 2.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"name": "StackState Agent",
"dockerFile": "Dockerfile",
"extensions": [
"golang.go",
"ms-python.python",
"ms-azuretools.vscode-docker",
"eamodio.gitlens",
"github.vscode-pull-request-github",
"redhat.vscode-yaml",
"ms-kubernetes-tools.vscode-kubernetes-tools",
"shardulm94.trailing-spaces", // Show trailing spaces
"Gruntfuggly.todo-tree", // Highlights TODO comments
"ms-python.vscode-pylance",
],
"containerEnv": {
"GO111MODULE": "on",
"GOMOD": "",
},
"remoteEnv": {
"PATH": "${containerEnv:PATH}:/home/vscode/.local/bin",
"VENV_BASE_PATH": "/home/vscode/.venv",
},
"workspaceMount": "src=${localWorkspaceFolder},dst=/go/src/github.com/StackVista/stackstate-agent,type=bind",
"mounts": [
"type=bind,target=/home/vscode/.kube,src=${localEnv:HOME}/.kube"
],
"workspaceFolder": "/go/src/github.com/StackVista/stackstate-agent",
"postCreateCommand": "./.devcontainer/postCreateCommand.sh",
"settings": {
"go.buildTags": "kubeapiserver,cpython,kubelet,etcd,docker,zk",
"go.testFlags": [
"-v"
],
"go.useLanguageServer": true,
"[go]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true,
},
// Optional: Disable snippets, as they conflict with completion ranking.
"editor.snippetSuggestions": "none"
},
"[go.mod]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true,
},
},
"go.autocompleteUnimportedPackages": true,
"go.gotoSymbol.includeImports": true,
"go.gotoSymbol.includeGoroot": true,
"go.buildOnSave": "workspace",
"go.lintOnSave": "workspace",
"go.vetOnSave": "workspace",
"editor.formatOnSave": true,
"go.coverOnSingleTest": true,
"go.coverOnSingleTestFile": true,
"python.pythonPath": "/usr/bin/python",
"git.ignoreLimitWarning": true,
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"vendor": true,
"venv": true,
".vendor-new": true,
".metals": true
},
"todo-tree.highlights.defaultHighlight": {
"icon": "alert",
"type": "text",
"foreground": "red",
},
}
}