x/tools/gopls: gopls formatter incorrect indentation for closing curly bracket inside if condition evaluation clause #51806
Labels
FrozenDueToAge
gopls/corruption
Issues related to file corruption in gopls
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go are you using (
go version
)?1.17.8
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
Outputwindows vscode go extension
What did you do?
What did you expect to see?
The
err
variable is inside the if statement scope hence the closing curly bracket at line 3 should not match the indentation of the outer if otherwise confusing.The text was updated successfully, but these errors were encountered: