Skip to content

Companion Recommends disabling on-edit test updates when they are not enabled #3977

@fastcat

Description

@fastcat

NOTE: this is about the Go Companion extension, which directs issues to be filed here instead of in its own repo, where issues are entirely disabled

What version of Go, VS Code & VS Code Go extension are you using?

Version Information
  • Run go version to get version of Go from the VS Code integrated terminal.
    • go version go1.25.6 linux/amd64
  • Run gopls -v version to get version of Gopls from the VS Code integrated terminal.
    • golang.org/x/tools/gopls v0.21.0
  • Run code -v or code-insiders -v to get version of VS Code or VS Code Insiders.
    • 1.108.1
  • Check your installed extensions to get the version of the VS Code Go extension
    • 0.53.0
  • Run Ctrl+Shift+P (Cmd+Shift+P on Mac OS) > Go: Locate Configured Go Tools command.

Tools Configuration

Environment

GOBIN: undefined
toolsGopath:
gopath: /home/vscode/go
GOROOT: /usr/local/go
PATH: /vscode/vscode-server/bin/linux-x64/585eba7c0c34fd6b30faac7c62a42050bfbc0086/bin/remote-cli:/home/vscode/.local/bin:/opt/ros/kilted/opt/gz_tools_vendor/bin:/opt/ros/kilted/bin:/workspaces/firefly/.venv/bin:/home/vscode/.local/bin:/home/vscode/go/bin:/usr/local/go/bin:/home/vscode/.cargo/bin:/home/vscode/.scripts:/opt/asdf/shims:/opt/fluent-bit/bin:/usr/lib/ccache:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

Tools

go:	/usr/local/go/bin/go: go version go1.25.6 linux/amd64

gotests:	/home/vscode/go/bin/gotests	(version: v1.6.0 built with go: go1.25.1)
impl:	/home/vscode/go/bin/impl	(version: v1.4.0 built with go: go1.25.1)
goplay:	/home/vscode/go/bin/goplay	(version: v1.0.0 built with go: go1.25.1)
dlv:	/home/vscode/go/bin/dlv	(version: v1.25.2 built with go: go1.25.5)
golangci-lint-v2:	/home/vscode/go/bin/golangci-lint-v2	(version: v2.7.2 built with go: go1.25.5)
gopls:	/home/vscode/go/bin/gopls	(version: v0.21.0 built with go: go1.25.5)

Go env

Workspace Folder (CENSORED): /workspaces/CENSORED

AR='ar'
CC='gcc'
CGO_CFLAGS='...lots of ROS stuff...'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='...lots of ROS stuff...'
CGO_ENABLED='1'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='...lots of ROS stuff...'
CXX='g++'
GCCGO='gccgo'
GO111MODULE=''
GOAMD64='v1'
GOARCH='amd64'
GOAUTH='netrc'
GOBIN=''
GOCACHE='/home/vscode/.cache/go-build'
GOCACHEPROG=''
GODEBUG=''
GOENV='/home/vscode/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFIPS140='off'
GOFLAGS=''
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build737768430=/tmp/go-build -gno-record-gcc-switches'
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMOD='/dev/null'
GOMODCACHE='/home/vscode/go/pkg/mod'
GONOPROXY='github.com/ATIinc'
GONOSUMDB='github.com/ATIinc'
GOOS='linux'
GOPATH='/home/vscode/go'
GOPRIVATE='github.com/ATIinc'
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTELEMETRY='local'
GOTELEMETRYDIR='/home/vscode/.config/go/telemetry'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.25.6'
GOWORK='/workspaces/CENSORED/go.work'
PKG_CONFIG='pkg-config'

Share the Go related settings you have added/edited

Run Preferences: Open Settings (JSON) command to open your settings.json file.
Share all the settings with the go. or ["go"] or gopls prefixes.

exp-vscode-go.testExplorer.update is not modified

Describe the bug

Was shown this notification:

Consider disabling on-edit updates. Reloading tests took more than half a second. Disabling on-edit updates to fix this issue.

However inspecting my settings, I see that exp-vscode-go.testExplorer.update is still at its default on-save in all environments (User, Remote [Dev Container], Workspace).

Steps to reproduce the behavior:

  1. Install & enable the Go Companion
  2. Have something be slow?
  3. See notification
  4. Click OK, navigates to the setting that is already in the recommended state

Metadata

Metadata

Assignees

Labels

Go CompanionIssues relating to the Go Companion extension

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions