Struct lsp::types::Command [−][src]
Represents a reference to a command. Provides a title which will be used to represent a command in the UI and, optionally, an array of arguments which will be passed to the command handler function when invoked.
Fields
title: String
Title of the command, like save
.
command: String
The identifier of the actual command handler.
arguments: Option<Vec<Value>>
Arguments that the command handler should be invoked with.
Methods
impl Command
[src]
impl Command
The Command namespace provides helper functions to work with Command literals.
pub fn create(
title: String,
command: String,
arguments: Option<Vec<Value>>
) -> Self
[src]
pub fn create(
title: String,
command: String,
arguments: Option<Vec<Value>>
) -> Self
Creates a new Command literal.