This change allows golsp to be run on a port, with an intermediary command passing the data through. This allows for improved logging. Also, add necessary changes to VSCode integration to allow changing the name of the command for golsp. Change-Id: I20dca1a50296636e57e022342ee70f0610ad1531 Reviewed-on: https://go-review.googlesource.com/c/157497 Run-TryBot: Rebecca Stambler <rstambler@golang.org> Reviewed-by: Ian Cottrell <iancottrell@google.com> |
||
---|---|---|
.. | ||
.vscode | ||
src | ||
README.md | ||
package-lock.json | ||
package.json | ||
tsconfig.json | ||
tslint.json |
README.md
golsp testing extension
An extension for debugging the Go Language Server provided by https://golang.org/x/tools/cmd/golsp. 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
golsp-1.0.0.vsix file
and reload VSCode.