1
0
mirror of https://github.com/golang/go synced 2024-10-01 08:28:43 -06:00
go/cmd/gopls/integration/vscode
Rebecca Stambler 719e078ade cmd/gopls/integration/vscode: log diagnostics as they are received
This change will allow us to investigate golang/go#30786 more easily.
Diagnostics are getting stuck even though they appear to be being sent
in the correct order, so it will be helpeful to see what's happening on
the VSCode side.

Change-Id: I623fcd9979c05decb0a6f60da2f75af7d0ff3853
Reviewed-on: https://go-review.googlesource.com/c/tools/+/170895
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2019-04-06 23:58:00 +00:00
..
.vscode
src cmd/gopls/integration/vscode: log diagnostics as they are received 2019-04-06 23:58:00 +00:00
.gitignore cmd/gopls/integration: git ignore temporary vscode files 2019-01-24 00:41:07 +00:00
package-lock.json cmd/gopls/integration: git ignore temporary vscode files 2019-01-24 00:41:07 +00:00
package.json cmd/gopls/integration: git ignore temporary vscode files 2019-01-24 00:41:07 +00:00
README.md
tsconfig.json
tslint.json

gopls testing extension

An extension for debugging the Go Language Server provided by https://golang.org/x/tools/cmd/gopls. The code for this extension comes from a combination of https://github.com/Microsoft/vscode-extension-samples/blob/master/lsp-sample and https://github.com/Microsoft/vscode-go.

Features

  • Diagnostics (on file change)
  • Completion (Ctrl + Space)
  • Jump to definition (F12 or right-click -> Go to Definition)
  • Signature help (Ctrl + Shift + Space)

Installation

To package the extension, run vsce package from this directory. To install the extension, navigate to the "Extensions" panel in VSCode, and select "Install from VSIX..." from the menu in the top right corner. Choose the gopls-1.0.0.vsix file and reload VSCode.