github.com/microsoft/fabrikate@v1.0.0-alpha.1.0.20210115014322-dc09194d0885/.devcontainer/devcontainer.json (about)

     1  // For format details, see https://aka.ms/vscode-remote/devcontainer.json or the definition README at
     2  // https://github.com/microsoft/vscode-dev-containers/tree/master/containers/docker-existing-dockerfile
     3  {
     4  	"name": "Dev Dockerfile",
     5  	"dockerFile": "Dockerfile",
     6  	// The optional 'runArgs' property can be used to specify additional runtime arguments.
     7  	"runArgs": [
     8  		// Enable go debugger
     9  		"--cap-add=SYS_PTRACE",
    10  		"--security-opt",
    11  		"seccomp=unconfined",
    12  		// map host docker daemon into container for sibling containers
    13  		"-v",
    14  		"/var/run/docker.sock:/var/run/docker.sock"
    15  	],
    16  	"settings": {
    17  		"files.eol": "\n",
    18  		"terminal.integrated.shell.linux": "/bin/bash",
    19  		// Go recommended settings with modules: https://github.com/golang/tools/blob/master/gopls/doc/vscode.md#vscode
    20  		"go.useLanguageServer": true,
    21  		"go.lintTool": "golangci-lint",
    22  		"go.lintFlags": [
    23  			"--fast"
    24  		],
    25  		"[go]": {
    26  			"editor.formatOnSave": true,
    27  			"editor.codeActionsOnSave": {
    28  				"source.organizeImports": true
    29  			},
    30  			// Optional: Disable snippets, as they conflict with completion ranking.
    31  			"editor.snippetSuggestions": "none"
    32  		},
    33  		"[go.mod]": {
    34  			"editor.formatOnSave": true,
    35  			"editor.codeActionsOnSave": {
    36  				"source.organizeImports": true
    37  			}
    38  		},
    39  		"gopls": {
    40  			// Add parameter placeholders when completing a function.
    41  			"usePlaceholders": true
    42  		}
    43  	},
    44  	"extensions": [
    45  		"ms-vscode.go"
    46  	]
    47  }