1
0
mirror of https://github.com/golang/go synced 2024-10-01 10:28:31 -06:00
go/cmd/gopls/integration/vscode
Ian Cottrell 78ee07aa94 cmd/gopls/integration: git ignore temporary vscode files
Change-Id: I9585fb227f44c4bf8071247bb6b89b6fed6cf83b
Reviewed-on: https://go-review.googlesource.com/c/159277
Run-TryBot: Ian Cottrell <iancottrell@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2019-01-24 00:41:07 +00:00
..
.vscode cmd/gopls: rename "golsp" to "gopls", as in "Go Please" 2019-01-16 23:16:16 +00:00
src cmd/gopls: rename "golsp" to "gopls", as in "Go Please" 2019-01-16 23:16:16 +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 cmd/gopls: rename "golsp" to "gopls", as in "Go Please" 2019-01-16 23:16:16 +00:00
tsconfig.json cmd/gopls: rename "golsp" to "gopls", as in "Go Please" 2019-01-16 23:16:16 +00:00
tslint.json cmd/gopls: rename "golsp" to "gopls", as in "Go Please" 2019-01-16 23:16:16 +00:00

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.