From bbfbbc92655c81a149bf1758e918f0b2e58427a9 Mon Sep 17 00:00:00 2001 From: Matt Layher Date: Tue, 17 Sep 2019 16:03:24 -0400 Subject: [PATCH] gopls/doc: add instructions for VSCode remote development Change-Id: I0a7e9feea556e21b2feb0540136f957de98526c0 Reviewed-on: https://go-review.googlesource.com/c/tools/+/195981 Reviewed-by: Ian Cottrell --- gopls/doc/vscode.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gopls/doc/vscode.md b/gopls/doc/vscode.md index 0359dae7b6..83526aafde 100644 --- a/gopls/doc/vscode.md +++ b/gopls/doc/vscode.md @@ -48,3 +48,11 @@ You can disable features through the `"go.languageServerExperimentalFeatures"` s [VSCode-Go]: https://github.com/microsoft/vscode-go + +# VSCode Remote Development with gopls + +You can also make use of `gopls` with the [VSCode Remote Development](https://code.visualstudio.com/docs/remote/remote-overview) extensions to enable full-featured Go development on a lightweight client machine, while connected to a more powerful server machine. + +First, install the Remote Development extension of your choice, such as the [Remote - SSH](https://code.visualstudio.com/docs/remote/ssh) extension. Once you open a remote session in a new window, open the Extensions pane (Ctrl+Shift+X) and you will see several different sections listed. In the "Local - Installed" section, navigate to the Go extension and click "Install in SSH: hostname". + +Once you have reloaded VSCode, you will be prompted to install `gopls` and other Go-related tools. After one more reload, you should be ready to develop remotely with VSCode and the Go extension.