From f3aee3358bea85c863521ece4a3fe8365836bd7e Mon Sep 17 00:00:00 2001 From: Rebecca Stambler Date: Wed, 13 Feb 2019 15:36:05 -0500 Subject: [PATCH] internal/lsp: allow ExecuteCommandParams to be nil The ExecuteCommandParams field is optional, so it can be set to nil. Change-Id: If440257e6b64ce5189b0a4b39a6ed7fc867da5af Reviewed-on: https://go-review.googlesource.com/c/162402 Run-TryBot: Rebecca Stambler TryBot-Result: Gobot Gobot Reviewed-by: Ian Cottrell --- internal/lsp/protocol/general.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/lsp/protocol/general.go b/internal/lsp/protocol/general.go index 00dcb41b68..fd457308ee 100644 --- a/internal/lsp/protocol/general.go +++ b/internal/lsp/protocol/general.go @@ -655,7 +655,7 @@ type DocumentLinkOptions struct { */ type ExecuteCommandOptions struct { /** - * The commands to be executed on the server + * The commands to be executed on the server. */ Commands []string `json:"commands"` } @@ -812,7 +812,7 @@ type ServerCapabilities struct { /** * The server provides execute command support. */ - ExecuteCommandProvider ExecuteCommandOptions `json:"executeCommandProvider,omitempty"` + ExecuteCommandProvider *ExecuteCommandOptions `json:"executeCommandProvider,omitempty"` /** * Workspace specific server capabilities */