forked from cloudflare/terraform-provider-cloudflare
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevcontainer.json
38 lines (38 loc) · 1.04 KB
/
devcontainer.json
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
{
"name": "Go",
"build": {
"dockerfile": "Dockerfile"
},
"runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"],
"containerEnv": {
"GOPATH": "/go"
},
"remoteEnv": {
"GOPATH": "${containerEnv:GOPATH}"
},
"mounts": [
"source=terraform-provider-cloudflare-bashhistory,target=/commandhistory,type=volume"
],
"updateContentCommand": "go generate -tags tools tools/tools.go",
"customizations": {
"vscode": {
"settings": {
"editor.formatOnSave": true,
"go.toolsManagement.checkForUpdates": "local",
"go.useLanguageServer": true,
"go.gopath": "/go",
"go.formatTool": "gofmt",
"go.formatFlags": ["-w", "-s"],
"go.toolsManagement.autoUpdate": true,
"go.lintTool": "golangci-lint",
"go.lintFlags": ["--fast"],
"gopls": {
"ui.semanticTokens": true
},
"go.survey.prompt": false,
"terraform.languageServer.enabled": true
},
"extensions": ["golang.Go", "hashicorp.terraform"]
}
}
}