parent
d6beb35efe
commit
00bd52719b
@ -0,0 +1,56 @@
|
|||||||
|
{
|
||||||
|
"name": "stackedit-docker-dev",
|
||||||
|
"dockerComposeFile": ["docker-compose.yml"],
|
||||||
|
"service": "vscode",
|
||||||
|
"runServices": ["vscode"],
|
||||||
|
"shutdownAction": "stopCompose",
|
||||||
|
"postCreateCommand": "go mod download",
|
||||||
|
"workspaceFolder": "/workspace",
|
||||||
|
"appPort": 8000,
|
||||||
|
"extensions": [
|
||||||
|
"ms-vscode.go",
|
||||||
|
"IBM.output-colorizer",
|
||||||
|
"eamodio.gitlens",
|
||||||
|
"mhutchie.git-graph",
|
||||||
|
"davidanson.vscode-markdownlint",
|
||||||
|
"shardulm94.trailing-spaces",
|
||||||
|
"alefragnani.Bookmarks",
|
||||||
|
"Gruntfuggly.todo-tree",
|
||||||
|
"mohsen1.prettify-json",
|
||||||
|
"quicktype.quicktype",
|
||||||
|
"spikespaz.vscode-smoothtype",
|
||||||
|
"stkb.rewrap",
|
||||||
|
"vscode-icons-team.vscode-icons"
|
||||||
|
],
|
||||||
|
"settings": {
|
||||||
|
// General settings
|
||||||
|
"files.eol": "\n",
|
||||||
|
// Docker
|
||||||
|
"remote.extensionKind": {
|
||||||
|
"ms-azuretools.vscode-docker": "workspace"
|
||||||
|
},
|
||||||
|
// Golang general settings
|
||||||
|
"go.useLanguageServer": true,
|
||||||
|
"go.autocompleteUnimportedPackages": true,
|
||||||
|
"go.gotoSymbol.includeImports": true,
|
||||||
|
"go.gotoSymbol.includeGoroot": true,
|
||||||
|
"gopls": {
|
||||||
|
"completeUnimported": true,
|
||||||
|
"deepCompletion": true,
|
||||||
|
"usePlaceholders": false
|
||||||
|
},
|
||||||
|
// Golang on save
|
||||||
|
"go.buildOnSave": "package",
|
||||||
|
"go.lintOnSave": "package",
|
||||||
|
"go.vetOnSave": "package",
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
"[go]": {
|
||||||
|
"editor.codeActionsOnSave": {
|
||||||
|
"source.organizeImports": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// Golang testing
|
||||||
|
"go.testFlags": ["-v"],
|
||||||
|
"go.testTimeout": "600s"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
version: "3.7"
|
||||||
|
|
||||||
|
services:
|
||||||
|
vscode:
|
||||||
|
image: qmcgaw/godevcontainer
|
||||||
|
volumes:
|
||||||
|
- ../:/workspace
|
||||||
|
- ~/.ssh:/home/vscode/.ssh:ro
|
||||||
|
- ~/.ssh:/root/.ssh:ro
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
cap_add:
|
||||||
|
- SYS_PTRACE
|
||||||
|
security_opt:
|
||||||
|
- seccomp:unconfined
|
||||||
|
entrypoint: zsh -c "while sleep 1000; do :; done"
|
Loading…
Reference in new issue