direnv-vscode
direnv-vscode copied to clipboard
Environment variable substitution doesn't work in settings.json
I have a vscode workspace with the workspace settings as follows:
{
"go.toolsEnvVars": {
"GO": "${env:GO}",
"GOBIN": "${env:GOBIN}",
"GONOPROXY": "${env:GONOPROXY}",
"GOPATH": "${env:GOPATH}",
"GOPRIVATE": "${env:GOPRIVATE}",
"GOPROXY": "${env:GOPROXY}",
"GOROOT": "${env:GOROOT}",
"GOSUMDB": "${env:GOSUMDB}",
"USE_ATHENS_GO_PROXY": "${env:USE_ATHENS_GO_PROXY}"
},
"go.goroot": "${env:GOROOT}"
}
direnv extension logs picks up the value correctly but the Go extension complains saying that ${env:GOROOT}
is not a valid goroot.
Is direnv the first extension to start or can that be guaranteed in any way so that the environment variables are loaded before any other extension?