go install golang.org/dl/gotip@latest
gotip download
mkdir /tmp/gopls && cd "$_"
gotip mod init gopls-unstable
gotip get golang.org/x/tools/gopls@master golang.org/x/tools@master
gotip install golang.org/x/tools/gopls
Set "go.goroot" in settigs.json to the path of installed gotip (in my machine this path is ~/sdk/gotip).
Not obvious to me that setting goroot to gotip doesn't mean
which gotip
and taking that path. Need to usegotip env GOROOT
(from this Reddit) and supply that value in settings.json.