x/tools/gopls: gc_details codelens is broken because gopls_gc_details command is not included in initialization #41985
Milestone
Comments
Change https://golang.org/cl/262354 mentions this issue: |
Change https://golang.org/cl/262597 mentions this issue: |
gopherbot
pushed a commit
to golang/tools
that referenced
this issue
Oct 15, 2020
The primary identifier for gopls commands was changed from Command.Name to Command.ID(), but this change was not made in the commands passed back to the client via ExecuteCommandOptions. Fix this, and ensure that our regtests actually check commands against the list of supported commands that has been sent. For golang/go#41985 Change-Id: If566584f157e8a86d26eac6353dbfd772b298cfc Reviewed-on: https://go-review.googlesource.com/c/tools/+/262597 Run-TryBot: Robert Findley <rfindley@google.com> Trust: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Initialization still lists
gc_details
, sogc_details
command is registered to vscode.CodeLens uses
gopls_gc_details
Since
gopls_gc_details
was never registered, vscode just errors.OTOH, vscode sends
gc_details
command togopls
, which results in 'no known command' error.The text was updated successfully, but these errors were encountered: