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:
Peter Weinbergr 2022-09-15 14:30:25 -04:00 committed by Peter Weinberger
parent 0398b3de2b
commit cdd69867e3
1 changed files with 1 additions and 1 deletions

View File

@ -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"`
/*