x/tools/gopls: gopls semantic token registration problems #48600
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
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
It does reproduce with gopls 0.7.2
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I'm experimenting with the gopls semantic tokens support. I've enabled it in the server options, and things are working. But, I'm having an issue with the capability registration behavior.
gopls does not report a value for
semanticTokensProvider
. My understanding is this is intentional, and dependant on the result of aworkspace/configuration
request. This matches what I'm seeing.However, with my default setup, my client was never receiving any
client/registerCapability
at all, for semantic tokens or anything else. It seems that my client must indicate that it accepts dynamic registration for thedidChangeConfiguration
client capability to receive any registrations at all.Interestingly, my client is also passing in false for the
workspaceFolders
client capability. But, gopls is attempting to registerworkspace/didChangeConfiguration
andworkspace/didChangeWorkspaceFolders
. I would have not have expected to see theworkspace/didChangeWorkspaceFolders
registration there. Perhaps this is an unrelated problem, but I figured I'd let you know just in case.The text was updated successfully, but these errors were encountered: