x/tools/gopls: LSP type DidSaveTextDocumentParams has wrong type for Text field #36063
Labels
Documentation
Issues describing a change to documentation.
FrozenDueToAge
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.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
According to the LSP spec:
https://microsoft.github.io/language-server-protocol/specifications/specification-3-15/#textDocument_didSave
DidSaveTextDocumentParams
is defined as:Note the
text
field is optional.However the type as generated for
gopls
is as follows:i.e.
Text
is astring
type when I think it should be a*string
type.Hence it's impossible to distinguish between "a file of zero length" and "no file contents being sent."
What did you expect to see?
Per above
What did you see instead?
Per above
cc @stamblerre @pjweinb
The text was updated successfully, but these errors were encountered: