File: devcontainer.json

package info (click to toggle)
hcloud-cli 1.39.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,628 kB
  • sloc: sh: 36; makefile: 7
file content (83 lines) | stat: -rw-r--r-- 2,618 bytes parent folder | download | duplicates (2)
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
79
80
81
82
83
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.137.0/containers/go
{
	"name": "Go",
	"build": {
		"dockerfile": "Dockerfile"
	},
	"runArgs": [
		"--cap-add=SYS_PTRACE",
		"--security-opt",
		"seccomp=unconfined"
	],
	// Set *default* container specific settings.json values on container create.
	"settings": {
		"go.toolsManagement.autoUpdate": false,
		"go.toolsManagement.checkForUpdates": "off",
		"go.gopath": "/go",
		"go.lintOnSave": "package",
		"go.vetOnSave": "package",
		"go.formatTool": "goimports",
		"go.useLanguageServer": true,
		"go.autocompleteUnimportedPackages": true,
		"go.gotoSymbol.includeImports": true,
		"go.gotoSymbol.includeGoroot": true,
		"go.editorContextMenuCommands": {
			"toggleTestFile": true,
			"addTags": true,
			"removeTags": false,
			"fillStruct": true,
			"testAtCursor": true,
			"testFile": false,
			"testPackage": false,
			"generateTestForFunction": true,
			"generateTestForFile": false,
			"generateTestForPackage": false,
			"addImport": true,
			"testCoverage": true,
			"playground": true,
			"debugTestAtCursor": true,
			"benchmarkAtCursor": false
		},
		"go.enableCodeLens": {
			"references": true,
			"runtest": true
		},
		"codeQL.telemetry.enableTelemetry": false,
		"codeQL.runningQueries.memory": 2048,
		"codeQL.runningQueries.debug": true,
		"git.autofetch": true,
		"editor.experimental.stickyScroll.enabled": true,
		"editor.guides.bracketPairs": true,
		"editor.renderFinalNewline": true,
		"editor.codeLens": true,
		"editor.insertSpaces": true,
		"editor.formatOnSave": true,
		"editor.formatOnPaste": true,
		"editor.snippetSuggestions": "none",
		"editor.codeActionsOnSave": {
			"source.organizeImports": true,
			"source.fixAll": true
		},
		"workbench.iconTheme": "vscode-icons",
		"files.trimTrailingWhitespace": true
	},
	// Add the IDs of extensions you want installed when the container is created.
	"extensions": [
		"golang.Go",
		"ms-azuretools.vscode-docker",
		"github.vscode-codeql",
		"davidanson.vscode-markdownlint",
		"shardulm94.trailing-spaces",
		"github.vscode-pull-request-github",
		"eamodio.gitlens",
		"IBM.output-colorizer",
        "bungcip.better-toml"
	],
	// Use 'forwardPorts' to make a list of ports inside the container available locally.
	// "forwardPorts": [9000],
	// Use 'postCreateCommand' to run commands after the container is created.
	//"postCreateCommand": "",
	// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
	//"remoteUser": "vscode"
}