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

An array of diagnostics.

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]

The CodeActionContext namespace provides helper functions to work with CodeActionContext literals.

Creates a new CodeActionContext literal.

Trait Implementations

impl Debug for CodeActionContext
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations