mirror of
https://github.com/golang/go
synced 2024-11-18 10:14:45 -07:00
719e078ade
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> |
||
---|---|---|
.. | ||
.vscode | ||
src | ||
.gitignore | ||
package-lock.json | ||
package.json | ||
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.