x/tools/gopls: fillstruct on file with syntax error deletes most of the file #52505
Labels
gopls/parsing
Issues related to parsing / poor parser recovery.
gopls
Issues related to the Go language server, gopls.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Refactoring
Issues related to refactoring tools
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
gopls version
go env
What did you do?
Called fillstruct on a test case.
main_test.go (before):
What did you expect to see?
value filled in for args, or no change if it was unable to do so.
What did you see instead?
main_test.go:
Editor and settings
VS Code 1.66.2
dfd34e8260c270da74b5c2d86d61aee4b6d56977
x64
Logs
<details?
The text was updated successfully, but these errors were encountered: