refactor: use vscode workspace to better support go modules in devcontainer

This allows gopls to handle autocompletion by setting multiple workspace roots it can traverse for dependencies.
This commit is contained in:
Jose Diaz-Gonzalez
2022-01-22 02:52:08 -05:00
parent 3bb8812e33
commit d3b01ffb2f
4 changed files with 118 additions and 33 deletions

View File

@@ -18,7 +18,7 @@
"source=${localWorkspaceFolder}/tmp/data/,target=/mnt/dokku/,type=bind"
],
"overrideCommand": false,
"postCreateCommand": "make setup-deploy-tests && go-mod-downloadall",
"postCreateCommand": "make setup-deploy-tests",
"runArgs": ["--init"],
"workspaceFolder": "/root/go/src/github.com/dokku/dokku",
"workspaceMount": "type=bind,source=${localWorkspaceFolder},target=/root/go/src/github.com/dokku/dokku,consistency=cached"