-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevcontainer.json
More file actions
76 lines (76 loc) · 2.22 KB
/
devcontainer.json
File metadata and controls
76 lines (76 loc) · 2.22 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
{
"name": "Go",
"dockerFile": "Dockerfile",
"runArgs": [
"--cap-add=SYS_PTRACE",
"--security-opt",
"seccomp=unconfined"
],
"settings": {
"terminal.integrated.shell.linux": "/bin/bash",
"files.eol": "\n",
"remote.extensionKind": {
"ms-azuretools.vscode-docker": "workspace"
},
"go.gopath": "/go",
"go.useLanguageServer": true,
"go.autocompleteUnimportedPackages": true,
"go.gotoSymbol.includeImports": true,
"go.gotoSymbol.includeGoroot": true,
"gopls": {
"completeUnimported": true,
"deepCompletion": true,
"usePlaceholders": true
},
"go.lintTool": "golangci-lint",
"go.buildOnSave": "workspace",
"go.lintOnSave": "workspace",
"go.vetOnSave": "workspace",
"editor.formatOnSave": true,
"[go]": {
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
},
"go.toolsEnvVars": {
"GOFLAGS": "-tags=",
"CGO_ENABLED": 1
},
"gopls.env": {
"GOFLAGS": "-tags="
},
"go.testEnvVars": {},
"go.testFlags": [
"-v",
"-race"
],
"go.testTimeout": "10s",
"go.coverOnSingleTest": true,
"go.coverOnSingleTestFile": true
},
"extensions": [
"golang.Go",
"ms-vscode.go",
"davidanson.vscode-markdownlint",
"ms-azuretools.vscode-docker",
"shardulm94.trailing-spaces",
"Gruntfuggly.todo-tree",
"bierner.emojisense",
"stkb.rewrap",
"vscode-icons-team.vscode-icons",
"redhat.vscode-yaml",
"IBM.output-colorizer",
"mohsen1.prettify-json",
"zxh404.vscode-proto3"
],
// "mounts": [
// "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind,consistency=cached"
// ],
"workspaceMount": "source=${localWorkspaceFolder},target=/go/src/project,type=bind,consistency=delegated",
"workspaceFolder": "/go/src/project",
// "appPort": [
// "8080:8080",
// "8443:8443"
// ],
"postCreateCommand": "go mod download"
}