From 13f8be5f577fc5865388af8a4818b44dce211b11 Mon Sep 17 00:00:00 2001 From: Peter Weinberger Date: Mon, 18 Nov 2019 15:47:42 -0500 Subject: [PATCH] internal/lsp/protocol: fix type of WorkspaceEdit.Changes in tsprotocol.go The new corrected type is map[string][]TextEdit. The old type was incorrectly struct{}. Change-Id: I3cb64eee90c5281b3fb40e543026cd308c55c49a Reviewed-on: https://go-review.googlesource.com/c/tools/+/207717 Run-TryBot: Peter Weinberger TryBot-Result: Gobot Gobot Reviewed-by: Rebecca Stambler --- internal/lsp/protocol/tsprotocol.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/lsp/protocol/tsprotocol.go b/internal/lsp/protocol/tsprotocol.go index 81153dff27..1008a7f720 100644 --- a/internal/lsp/protocol/tsprotocol.go +++ b/internal/lsp/protocol/tsprotocol.go @@ -1,7 +1,7 @@ // Package protocol contains data types and code for LSP jsonrpcs // generated automatically from vscode-languageserver-node // commit: 635ab1fe6f8c57ce9402e573d007f24d6d290fd3 -// last fetched Sun Oct 13 2019 10:14:32 GMT-0400 (Eastern Daylight Time) +// last fetched Mon Oct 14 2019 09:09:30 GMT-0400 (Eastern Daylight Time) package protocol // Code generated (see typescript/README.md) DO NOT EDIT. @@ -3178,8 +3178,7 @@ type WorkspaceEdit struct { /** * Holds changes to existing resources. */ - Changes struct { - } `json:"changes,omitempty"` + Changes map[string][]TextEdit `json:"changes,omitempty"` /** * Depending on the client capability `workspace.workspaceEdit.resourceOperations` document changes * are either an array of `TextDocumentEdit`s to express changes to n different text documents