mirror of
https://github.com/laravel-ls/protocol.git
synced 2026-06-18 13:00:03 +02:00
Initial commit
This commit is contained in:
commit
9061064e97
21 changed files with 1699 additions and 0 deletions
31
client.go
Normal file
31
client.go
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
package protocol
|
||||
|
||||
// ClientInfo Information about the client.
|
||||
// The client provides this information during the initialize request.
|
||||
//
|
||||
// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#initializeParams
|
||||
//
|
||||
// @since 3.15.0
|
||||
type ClientInfo struct {
|
||||
// The name of the client as defined by the client.
|
||||
// For example "vscode", "emacs" or "vim".
|
||||
Name string `json:"name"`
|
||||
|
||||
// The client's version as defined by the client.
|
||||
Version *string `json:"version,omitempty"`
|
||||
}
|
||||
|
||||
// Command Represents a reference to a command. Provides a title which will be used to represent a command in the UI
|
||||
// and optionally a command identifier and arguments.
|
||||
//
|
||||
// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#command
|
||||
type Command struct {
|
||||
// Title of the command, like `save`.
|
||||
Title string `json:"title"`
|
||||
|
||||
// The identifier of the actual command handler.
|
||||
Command string `json:"command"`
|
||||
|
||||
// Arguments that the command handler should be invoked with.
|
||||
Arguments []LSPAny `json:"arguments,omitempty"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue