vscode-go
vscode-go copied to clipboard
Explorer and Source Control don't display file changes with Go extension enabled
What version of Go, VS Code & VS Code Go extension are you using?
Version Information
- Run
go versionto get version of Go from the VS Code integrated terminal.- go version go1.24.5 windows/amd64
- Run
gopls -v versionto get version of Gopls from the VS Code integrated terminal.- golang.org/x/tools/gopls v0.19.1
- Run
code -vorcode-insiders -vto get version of VS Code or VS Code Insiders.- 1.102.1
- Check your installed extensions to get the version of the VS Code Go extension
- 0.48.0
- Run Ctrl+Shift+P (Cmd+Shift+P on Mac OS) >
Go: Locate Configured Go Toolscommand.-
Tools Configuration
-
Environment
GOBIN: undefined toolsGopath: gopath: C:\Users\00siv\go GOROOT: C:\Program Files\Go PATH: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\dotnet;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\RSRC;C:\msys64\ucrt64\bin;C:\Program Files\NSSM;C:\Program Files\Git\cmd;C:\Program Files (x86)\WinSCP;C:\Program Files (x86)\cloudflared.;C:\Program Files\Vim\vim91;C:\ExifTool;C:\Program Files\NVIDIA Corporation\NVIDIA app\NvDLISR;C:\Program Files\Cloudflare\Cloudflare WARP;C:\Program Files\PowerShell\7;C:\Program Files\Sunshine;C:\Program Files\Sunshine\tools;C:\Program Files\Go\bin;C:\Users\00siv\AppData\Local\Microsoft\WindowsApps;C:\Users\00siv\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\Azure Data Studio\bin;C:\Users\00siv\AppData\Local\Android\Sdk\platform-tools;C:\Program Files (x86)\Nmap;C:\Users\00siv\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Azure Data Studio\bin;C:\Users\00siv\go\bin
Tools
go: C:\Program Files\Go\bin\go.exe: go version go1.24.5 windows/amd64
gopls: C:\Users\00siv\go\bin\gopls.exe (version: v0.19.1 built with go: go1.24.5)
gotests: C:\Users\00siv\go\bin\gotests.exe (version: v1.6.0 built with go: go1.24.5)
impl: C:\Users\00siv\go\bin\impl.exe (version: v1.4.0 built with go: go1.24.5)
goplay: C:\Users\00siv\go\bin\goplay.exe (version: v1.0.0 built with go: go1.24.5)
dlv: C:\Users\00siv\go\bin\dlv.exe (version: v1.25.1 built with go: go1.24.5)
staticcheck: C:\Users\00siv\go\bin\staticcheck.exe (version: v0.6.1 built with go: go1.24.5)
Go env
Workspace Folder (SPG-Core): c:\Users\00siv\src\SPG-Core
set AR=ar
set CC=gcc
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_ENABLED=1
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set CXX=g++
set GCCGO=gccgo
set GO111MODULE=
set GOAMD64=v1
set GOARCH=amd64
set GOAUTH=netrc
set GOBIN=
set GOCACHE=C:\Users\00siv\AppData\Local\go-build
set GOCACHEPROG=
set GODEBUG=
set GOENV=C:\Users\00siv\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFIPS140=off
set GOFLAGS=
set GOGCCFLAGS=-m64 -mthreads -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=C:\Users\00siv\AppData\Local\Temp\go-build2186532598=/tmp/go-build -gno-record-gcc-switches
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMOD=c:\Users\00siv\go.mod
set GOMODCACHE=C:\Users\00siv\go\pkg\mod
set GONOPROXY=github.com/signatureproductsgroup/*
set GONOSUMDB=github.com/signatureproductsgroup/*
set GOOS=windows
set GOPATH=C:\Users\00siv\go
set GOPRIVATE=github.com/signatureproductsgroup/*
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTELEMETRY=local
set GOTELEMETRYDIR=C:\Users\00siv\AppData\Roaming\go\telemetry
set GOTMPDIR=
set GOTOOLCHAIN=auto
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.24.5
set GOWORK=
set 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.
Describe the bug
When the Go extension is enabled in VS Code, updates to local files (not tested on remote) are no longer displayed/detected in the Explorer and Source Control panes until those panes are manually refreshed.
Isolated to the Go extension as follows:
- Disabling the Go extension resolves the issue.
- The issue persists even if Go is the only extension.
Steps to reproduce the behavior:
- Open VS Code and load a repository with all extensions disabled.
- Open a file, make a change, and save it.
- Observe that the Source Control notification appears in the sidebar and files are listed for sync to the repository.
- Discard the changes.
- Enable the Go extension.
- Open a file, make a change and save it.
- Observe that the Source Control notification does not appear in the sidebar and files are not listed for sync to the repo.