-
Notifications
You must be signed in to change notification settings - Fork 774
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
03af3d4 package.json: sync gopls settings @ v0.8.0 1274335 package.json: fix spelling for generateTestForPackage b6187d8 package.json: add go.toolsManagement.go 6399238 codereview.cfg: declare issue repo 09c4936 src/goEnv.ts: pass uri to getGoConfig 0f849d1 src/config: add ExtensionInfo to replace isInPreview/isInCloudIDE 0bd09b6 src/goMain: install tools for suggested updates if autoUpdate is on 2434bfa src/utils: add utils/README.md and move test_events.md to goTest acbe503 src/goImport,goOutline: check registered gopls commands 4aa4554 src/goLanguageServer: skip buildLanguageClient if it's disabled 073b8fc src/goLanguageServer: include go version in the gopls crash report e6dc469 src/goLanguageServer: sample half of gopls opt-out users for survey 4b6318c src/goLanguageServer: clean unused `surveyOnly` param 5494d35 src/goLanguageServer.ts: don't let config change trigger opt-out survey 2222461 src/goOutline.ts: use regexp to find package decl 7bc14ec src/goStatus: add go.work to status bar quickpick 16eadfa src/goMain: suggest tool updates if tools were compiled with old go 934911a src/goLanguageServer: cache language server info 28136c8 src/goOutline: use language server to get document symbols af9afa3 src/goMain.ts: remove warning about dlv-dap in alternateTools bdcd7a6 src/goMain.ts: remove prompt for nightly extension users b3048fc src/goLanguageServer: use 1.42+ workspace.getConfiguration API 9156fb4 src/goMain: use inspectGoToolVersion instead of runGoVersionM 3e9fb0e src/util: remove vendoring support check 4435e8e src/util: fix vendor support check 37ffd3c test: update switch goroutine test e04eb10 build: log shm size & increase shm size to 8G e50cf23 src/goPackages: make goListPkgs async and run go list with -e 5b290fa CHANGELOG.md: list changes for v0.31.1 fb8ba52 vscode-go: remove references to gopkgs 68fae93 tools: remove gopkgs from all tools information 037e8a3 src/goTest: avoid a name conflicting with the proposed quickpick api 3ad379c src/goEnvironmentStatus: use installTool for golang.org/dl/* install 9d0ec81 .github/workflows: replace go1.18-beta1 with go1.18-beta2 c01699e docs/features.md: discuss default formatting behavior and template support c5ebe02 docs/advanced.md: use go1.18beta2 in the instruction d5403b9 src/goToolsInformation: require go1.13+ for gopls 0a9d740 .github/workflows: partially revert go.dev/cl/380175 59d4c16 test/integration: skip 'disconnect with multiple disconnectRequests' test 92797b2 package.json: bump dev version to 0.32.0 6264294 docs/advanced.md: fix broken link and add more links debf84a docs/advanced.md: add go1.18 instruction 2735f15 src/goTest: remove '#' in subtest name parsing cutset c42b3cd src/goTest: detect Fuzz tests and list them in test explorer UI 6a37048 workflows: replace repository dispatch with workflow dispatch b5b4835 CHANGELOG.md: Update changelog for release continued 6135b6e src/goPackages.ts: replace use of gopkgs with go list 1b607ad tests/testdata: fix package name in importTest 6fb2a2a package.json: update [email protected] e4e5dfa test: remove flaky step out test 59db2c8 tools/license.sh: only include production dependencies in LICENSE Change-Id: Ia9e1dab191444b17f968ba64c9e95556ac5483ee
- Loading branch information
Showing
47 changed files
with
952 additions
and
735 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
issuerepo: golang/vscode-go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,62 @@ | |
This document describes more advanced ways of working with the VS Code Go | ||
extension. | ||
|
||
## Using Go1.18 | ||
|
||
The latest Go extension (`v0.31.0+` or [Nightly](./nightly.md)) | ||
contains experimental support for the [new Go 1.18 features](https://tip.golang.org/doc/go1.18). | ||
|
||
* [Generics](https://go.dev/doc/tutorial/generics): IntelliSense, Code Editing, Diagnostics, Sytax Highlighting, etc. | ||
* [Fuzzing](https://go.dev/doc/tutorial/fuzz): Run/Debug Test using CodeLens and Test UI (available in Nightly). | ||
* [Go workspace mode](https://pkg.go.dev/cmd/[email protected]#hdr-Workspace_maintenance): _WIP_ | ||
|
||
The latest Go extension (v0.31.0+, or [Nightly](./nightly.md)) supports the new Go 1.18 features with | ||
the following configuration. | ||
|
||
1. Get the preview of Go 1.18 by visiting [the official Go downloads page](https://go.dev/dl/#go1.18beta2). | ||
The following command will install `go1.18beta2` binary in your `$GOPATH/bin` | ||
or `GOBIN` directory, and download the Go 1.18 SDK. | ||
```sh | ||
go install golang.org/dl/go1.18beta2@latest | ||
go1.18beta2 download | ||
``` | ||
|
||
The location of the downloaded Go 1.18 SDK directory can be found with | ||
```sh | ||
go1.18beta2 env GOROOT | ||
``` | ||
|
||
2. Configure the extension to use `go1.18beta2` | ||
(or the `go` binary in the Go 1.18 SDK `bin` directory), using [one of | ||
the options listed below](https://github.com/golang/vscode-go/blob/master/docs/advanced.md#choosing-a-different-version-of-go). | ||
|
||
3. In order to process the new language features, [tools](./tools.md) this extension | ||
needs rebuilding with Go 1.18. **Please run the [`Go: Install/Update Tools`](commands.md#go-installupdate-tools) | ||
command to update tools**. | ||
|
||
4. (optional) for correct syntax highlighting, we recommend to enable | ||
[semantic highlighting](https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide) | ||
by turning on [Gopls' `ui.semanticTokens` setting](https://github.com/golang/vscode-go/blob/master/docs/settings.md#uisemantictokens). | ||
``` | ||
"gopls": { "ui.semanticTokens": true } | ||
``` | ||
|
||
### Known Issues | ||
|
||
The Go Tools team are actively working on fixing bugs and improving usability | ||
of the new Go 1.18 features. Please take a look at current known | ||
[`vscode-go` issues](https://github.com/golang/vscode-go/issues?q=is%3Aissue+label%3Ago1.18+) | ||
and [`gopls` issues](https://github.com/golang/go/milestone/244). | ||
|
||
* Features that depend on 3rd party tools (`staticcheck`, `golangci-lint`, ...) may not work yet. | ||
Please follow the [tracking issue](https://github.com/golang/go/issues/50558). | ||
* Support for `go.work` is a work in progress. | ||
|
||
In order to pick up the latest fixes, please consider to use the [Nightly](./nightly.md) version of | ||
the extension. We plan to make prereleases of `gopls` v0.8.0 available frequently. | ||
The Nightly version installs the pre-release version of `gopls`, so you will be able to pick up the | ||
latest bug fixes of `gopls` without manual installation. | ||
|
||
## Choosing a different version of Go | ||
|
||
The extension chooses the `go` command using the `PATH` (or `Path`) environment | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.