From c1736c0f0a5b26e10c625974cd0d4a64d48d562e Mon Sep 17 00:00:00 2001 From: Peter Weinberger Date: Wed, 27 Nov 2019 09:10:03 -0500 Subject: [PATCH] lsp/protocol: make sure RenameProvider is an interface{} CL 208272 made one occurrence of RenameProvider an interface{}. This CL reflects the effect of making that change in the code generator. (That is, the other occurrence of RenameProvider is now an interface{} too.) gopls seems to still work, and all tests pass. Change-Id: Icfc4a5639192c46b564509a601b8c03bbe2665a2 Reviewed-on: https://go-review.googlesource.com/c/tools/+/209158 Reviewed-by: Rebecca Stambler Run-TryBot: Rebecca Stambler TryBot-Result: Gobot Gobot --- internal/lsp/protocol/tsprotocol.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/lsp/protocol/tsprotocol.go b/internal/lsp/protocol/tsprotocol.go index 209b3ead49..562ee3e3f8 100644 --- a/internal/lsp/protocol/tsprotocol.go +++ b/internal/lsp/protocol/tsprotocol.go @@ -1882,7 +1882,7 @@ type InnerServerCapabilities struct { * specified if the client states that it supports * `prepareSupport` in its initial `initialize` request. */ - RenameProvider RenameOptions/*boolean | RenameOptions*/ `json:"renameProvider,omitempty"` + RenameProvider interface{}/*boolean | RenameOptions*/ `json:"renameProvider,omitempty"` /** * The server provides folding provider support. */ @@ -3685,7 +3685,7 @@ const ( WatchDelete WatchKind = 4 ) -// Types created to avoid struct in formal parameters and embedded structs +// Types created to name formal parameters and embedded structs type ParamConfiguration struct { ConfigurationParams PartialResultParams