From 9ba33e0b3301c0a111b87a8a625394bfb0c260bf Mon Sep 17 00:00:00 2001 From: Rebecca Stambler Date: Tue, 22 Oct 2019 17:15:19 -0400 Subject: [PATCH] internal/lsp/cmd: use 'go-diff' by default in format command Change-Id: Idf6c828721921df21de3d25930580ad5ed5808d3 Reviewed-on: https://go-review.googlesource.com/c/tools/+/202620 Run-TryBot: Rebecca Stambler TryBot-Result: Gobot Gobot Reviewed-by: Ian Cottrell --- internal/lsp/cmd/cmd.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/lsp/cmd/cmd.go b/internal/lsp/cmd/cmd.go index a87234b0cd..60b307d77c 100644 --- a/internal/lsp/cmd/cmd.go +++ b/internal/lsp/cmd/cmd.go @@ -304,7 +304,8 @@ func (c *cmdClient) Configuration(ctx context.Context, p *protocol.ParamConfig) env[l[0]] = l[1] } results[i] = map[string]interface{}{ - "env": env, + "env": env, + "go-diff": true, } } return results, nil