From cdd69867e3096c2c37d44fd2b12a57c7f3a53bf3 Mon Sep 17 00:00:00 2001 From: Peter Weinbergr Date: Thu, 15 Sep 2022 14:30:25 -0400 Subject: [PATCH] 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 Run-TryBot: Peter Weinberger gopls-CI: kokoro Reviewed-by: Robert Findley --- gopls/internal/lsp/protocol/tsprotocol.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gopls/internal/lsp/protocol/tsprotocol.go b/gopls/internal/lsp/protocol/tsprotocol.go index 09dfb48663..79ed309da3 100644 --- a/gopls/internal/lsp/protocol/tsprotocol.go +++ b/gopls/internal/lsp/protocol/tsprotocol.go @@ -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"` /*