2019-01-16 15:01:06 -07:00
|
|
|
# gopls testing extension
|
2018-12-10 14:07:01 -07:00
|
|
|
|
|
|
|
An extension for debugging the Go Language Server provided by
|
2019-01-16 15:01:06 -07:00
|
|
|
https://golang.org/x/tools/cmd/gopls. The code for this extension comes from
|
2018-12-10 14:07:01 -07:00
|
|
|
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
|
2019-01-16 15:01:06 -07:00
|
|
|
`gopls-1.0.0.vsix file` and reload VSCode.
|