You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gopls/internal/protocol: Avoid omitempty for integer fields
The existing code adds the json tag 'omitempty' to
optional protocol fields, but for some integer-valued
fields 0 and empty have different semantics.
This CL changes the behavior so that optional integer-valued
fields are not omitted if they are zero.
FIxes golang.go/go#71489
Change-Id: I1f2cd6c6b0d6b7495adb1d8bc0b404ee9ea895f5
Reviewed-on: https://go-review.googlesource.com/c/tools/+/649455
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: Alan Donovan <[email protected]>
0 commit comments