x/tools/gopls: tolerate JSON decoding failures from type mismatch if the affected field is unused #45316
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
During VSCode v0.23.1 release that included backward-incompatible change (upgrading LSP 3.16 prerelease to stable), we encountered an error like
that stopped gopls. (golang/vscode-go#1328)
The problematic field
prepareSupportDefaultBehavior
is not used by gopls in this specific case. Please investigate if gopls can handle this kind of type mismatch gracefully (i.e. decoding only necessary, relevant fields) for improved forward compatibility.The text was updated successfully, but these errors were encountered: