mirror of https://github.com/golang/go.git
gopls/tsprotocol: make Disabled in CodeAction optional
The new LSP stubs were returning a "disabled" struct in CodeActions, which is wrong, and this CL fixes. Tested by hand. Fixes golang/go#55080 Change-Id: Id38df18f1e3f20ef2aa1cb1adfe96dacacad9ad6 Reviewed-on: https://go-review.googlesource.com/c/tools/+/431216 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Peter Weinberger <pjw@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> Reviewed-by: Robert Findley <rfindley@google.com>
This commit is contained in:
parent
0398b3de2b
commit
cdd69867e3
|
|
@ -297,7 +297,7 @@ type CodeAction struct { // line 5401
|
|||
*
|
||||
* @since 3.16.0
|
||||
*/
|
||||
Disabled PDisabledMsg_textDocument_codeAction `json:"disabled,omitempty"`
|
||||
Disabled *PDisabledMsg_textDocument_codeAction `json:"disabled,omitempty"`
|
||||
// The workspace edit this code action performs.
|
||||
Edit WorkspaceEdit `json:"edit,omitempty"`
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue