I have go installed.
$ which go
Installed Visual Studio Code (VSC) bundle, 1.40.1
Launch Visual Studio Code from options or install launch.
VSC emits this message at bottom right of its UI:
Failed to run “go env” to find GOPATH as the “go” binary cannot be found in either GOROOT(/usr/lib/golang) or PATH(/app/bin:/usr/bin:/home/mark/.var/app/com.visualstudio.code/data/node_modules/bin)
It does not looke like it is using my PATH. The reported error path does not match my environment PATH. A terminal session:
go env | grep GOPATH GOPATH="/home/mark/gocode" echo $PATH
A tar file of VSC 1.40, unpacked into a directory and executed from /home/mark/bin/VSCode-linux-x188.8.131.52/bin as ./code does not have this problem.