x/tools/gopls: Make "gopls/internal/lsp/protocol" package compatible with go.lsp.dev/protocol and make external #61338
Labels
FeatureRequest
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
The gopls
protocol
package includes logic that would be useful for other language server implementations. There is already a go.lsp.dev/protocol package that contains significant overlap with the version of protocol included in gopls, and is depended on by several other LSP implementations for other languages that are written in Go.Proposal would be to align
gopls/internal/lsp/protocol
withgo.lsp.dev/protocol
:go.lsp.dev/protocol
appears to be manually maintained. The auto generation logic ingopls/internal/lsp/protocol
could be moved there andgo.lsp.dev/protocol
becomes the single source of truth for all type and interface definitions.go.lsp.dev/protocol
as long as they are not go-specificThe text was updated successfully, but these errors were encountered: