Go CompanionThe unofficial companion to the official Go extension that provides experimental features. Go Companion is intended to be used with prerelease versions of the Go extension and requires gopls v0.17.0 or later. The user experience may be somewhat degraded when used with release versions of the Go extension. IssuesReport issues to vscode-go. Include a note that you are reporting an issue or request for Go Companion. Test ExplorerGo Companion includes an experimental alternative to vscode-go's test explorer that uses the Go language server (gopls) for test discovery, allowing for more advanced test discovery such as static detection of (some) subtests. Additionally, Go Companion provides the following features:
More detailed descriptions of these settings are provided in VSCode's settings editor. CoverageCoverage is supported through VSCode's test coverage API. The coverage scope (as in, show coverage for the current package or for the entire module) may be configured with the "Configure Coverage Run Profile" command. This is a workaround for microsoft/vscode#237106. ProfilingGo Companion supports profiling tests and includes a pprof profile viewer that is more cleanly integrated with the editor than vscode-go's iframe-based viewer. To profile tests:
If multiple tests are run with profiling enabled, Documentation ViewerGo Companion provides a command and editor context menu item for rendering package documentation. Right click a declaration in a Go file and select "Go Companion: Render Documentation": |