Skip to content

Commit

Permalink
Remove references to go-langserver support in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed May 16, 2020
1 parent 11b3c40 commit c2cc0e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,13 @@ The Go extension is ready to use on the get go. If you want to customize the fea

### Go Language Server

The Go extension uses a host of [Go tools](https://github.com/Microsoft/vscode-go/blob/master/docs/Go-tools-that-the-Go-extension-depends-on.md) to provide the various language features. An alternative is to use a single language server that provides the same features using the [Language Server Protocol](https://microsoft.github.io/language-server-protocol/)
The Go extension uses a host of [Go tools](https://github.com/Microsoft/vscode-go/blob/master/docs/Go-tools-that-the-Go-extension-depends-on.md) to provide the various language features. An alternative is to use a single language server that provides the same features using the [Language Server Protocol](https://microsoft.github.io/language-server-protocol/).

Previously, we added support to use `go-langserver`, the [language server from Sourcegraph](https://github.com/sourcegraph/go-langserver). There is no active development for it anymore and it doesn't support Go modules. Therefore, we are now switching to use `gopls`, the [language server from Google](https://github.com/golang/go/wiki/gopls) which is currently in active development.
[`gopls`](https://golang.org/s/gopls/README.md) from Google is the official language server for
the Go language and is currently in active development. You can choose to use this by setting
`go.useLanguageServer` to `true` in your settings.

- If you are already using the language server from Sourcegraph, you can continue to use it as long as you are not using Go modules. We do suggest you to move to using `gopls` though.
- To do so, delete the `go-langserver` binary/executable in your machine and this extension will prompt you to install `gopls` after a reload of the VS Code window.
- If you are working on a project that uses Go modules, you will be prompted to use the language server from Google as it provides much better support for Go modules.
- If you have never used language server before, and now opt to use it, you will be prompted to install and use the language server from Google as long as you are using a Go version > 1.10.
If you are working on a project that uses Go modules, you will be prompted to use the language server as it provides much better support for Go modules.

> Note: The language server from Google supports Go version > 1.10 only
Expand Down
1 change: 0 additions & 1 deletion docs/Go-tools-that-the-Go-extension-depends-on.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ There are other features of this extension which you most probably wouldn't be u
- [impl](https://github.com/josharian/impl) for generating stubs for interfaces
- [gotype-live](https://github.com/tylerb/gotype-live) for providing diagnostics as you type
- [gotests](https://github.com/cweill/gotests/) for generating unit tests
- [go-langserver](https://github.com/sourcegraph/go-langserver) for using the Go language server by Sourcegraph
- [fillstruct](https://github.com/davidrjenni/reftools/tree/master/cmd/fillstruct) for filling a struct literal with default values

You can install all these tools at once by running the command `Go: Install/Update Tools`. The same command can be used to keep the tools up to date as well as to re-compile in case you change the version of Go being used.
Expand Down

0 comments on commit c2cc0e6

Please sign in to comment.