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 <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
diff --git a/internal/lsp/protocol/general.go b/internal/lsp/protocol/general.go
index 00dcb41..fd45730 100644
--- a/internal/lsp/protocol/general.go
+++ b/internal/lsp/protocol/general.go
@@ -655,7 +655,7 @@
*/
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 @@
/**
* The server provides execute command support.
*/
- ExecuteCommandProvider ExecuteCommandOptions `json:"executeCommandProvider,omitempty"`
+ ExecuteCommandProvider *ExecuteCommandOptions `json:"executeCommandProvider,omitempty"`
/**
* Workspace specific server capabilities
*/