Commit 4e672d5
gopls/internal/protocol: PublishDiagnosticsParams.version omitempty
This CL reverts the status of the PublishDiagnostics.version field
to omitempty. This status was removed by CL 73501, causing some
clients (e.g. coc.nvim) to treat the zero version (meaning "missing"
to gopls' file.Handle) as an actual version in the past.
Unfortunately it is not possible to reproduce the regression using
gopls' JSON encoding structures, hence the lack of a test.
Fixes golang/go#73501
Updates golang/go#71489
Change-Id: Ia116f948e13782610c9de8d2d7ffd99bdb377d3e
Reviewed-on: https://go-review.googlesource.com/c/tools/+/678095
Commit-Queue: Alan Donovan <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
Auto-Submit: Alan Donovan <[email protected]>
Reviewed-by: Robert Findley <[email protected]>1 parent e88c5a4 commit 4e672d5
File tree
4 files changed
+8
-3
lines changed- gopls/internal
- cmd
- protocol
- generate
- server
4 files changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
644 | 648 | | |
645 | 649 | | |
646 | 650 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
904 | 904 | | |
905 | 905 | | |
906 | 906 | | |
907 | | - | |
| 907 | + | |
908 | 908 | | |
909 | 909 | | |
910 | 910 | | |
| |||
0 commit comments