mirror of
https://github.com/golang/go
synced 2024-11-18 16:14:46 -07:00
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>
This commit is contained in:
parent
69a2705782
commit
f3aee3358b
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user