Struct lsp::types::CodeActionContext [−][src]
pub struct CodeActionContext { pub diagnostics: Vec<Diagnostic>, pub only: Option<Vec<CodeActionKind>>, }
Contains additional diagnostic information about the context in which a code action is run.
Fields
diagnostics: Vec<Diagnostic>
An array of diagnostics.
only: Option<Vec<CodeActionKind>>
Requested kind of actions to return.
Actions not of this kind are filtered out by the client before being shown. So servers can omit computing them.
Methods
impl CodeActionContext
[src]
impl CodeActionContext
The CodeActionContext namespace provides helper functions to work with CodeActionContext literals.
pub fn create(
diagnostics: Vec<Diagnostic>,
only: Option<Vec<CodeActionKind>>
) -> Self
[src]
pub fn create(
diagnostics: Vec<Diagnostic>,
only: Option<Vec<CodeActionKind>>
) -> Self
Creates a new CodeActionContext literal.
Trait Implementations
impl Debug for CodeActionContext
[src]
impl Debug for CodeActionContext
Auto Trait Implementations
impl Send for CodeActionContext
impl Send for CodeActionContext
impl Sync for CodeActionContext
impl Sync for CodeActionContext