-
Notifications
You must be signed in to change notification settings - Fork 819
Open
Labels
WaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.Issue is not actionable because of missing required information, which needs to be provided.
Milestone
Description
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.22.0 windows/amd64
- Run
gopls -v version
to get version of Gopls from the VS Code integrated terminal.- golang.org/x/tools/gopls v0.16.1
- Run
code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.- 1.92.2
- Check your installed extensions to get the version of the VS Code Go extension
- v0.42.0
Describe the bug
If you name your folder blah.go
and have you code in a file called blah.go
, then run go clean
it will delete blah.go/blah.go
.
Steps to reproduce the behavior:
- Create folder called
blah.go
- Create file called
blah.go/blah.go
with contents "package main" - Create file called
blah.go/go.mod
with contents "module blah
go 1.22" - Run
go clean
- File
blah.go/blah.go
is gone.
Fix
go clean
should check if folder name ends in .go
before deleting a file named the same as the parent folder.
Metadata
Metadata
Assignees
Labels
WaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.Issue is not actionable because of missing required information, which needs to be provided.