# Go Language Server: using golsp or bingo needs updating

How to setup vscode-go to use golsp or bingo.

# golsp

# install

$ go get -u golang.org/x/tools/...
$ go get -u golang.org/x/tools/cmd/golsp/...
$ which golsp
/Users/mbana/go/bin/golsp
1
2
3
4

# settings.json

...
  "go.useLanguageServer": true,
  "go.alternateTools": {
    "go-langserver": "golsp",
  },
  "go.languageServerFlags": [
  ],
  "go.languageServerExperimentalFeatures": {
    "format": true,
    "autoComplete": true,
  },
...
1
2
3
4
5
6
7
8
9
10
11
12

# bingo

# install

$ go get -u github.com/saibing/bingo
$ which bingo
/Users/mbana/go/bin/bingo
1
2
3

# settings.json

...
  "go.useLanguageServer": true,
  "go.alternateTools": {
    "go-langserver": "bingo",
  },
  "go.languageServerFlags": [
    "-trace",
    "-enhance-signature-help",
    "-format-style=goimports",
  ],
  "go.languageServerExperimentalFeatures": {
    "format": true,
    "autoComplete": true,
  },
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

# References

Last Updated: 10/21/2019, 2:15:02 PM