Class

LspCodeAction

Description

class Lsp.CodeAction : Lsp.Action
{
  /* No available fields */
}

A code action represents a change that can be performed in code, e.g. to fix a problem or to refactor code.

A CodeAction must set either edit and/or a command. If both are supplied, the edit is applied first, then the command is executed.

Hierarchy

hierarchy this LspCodeAction ancestor_0 LspAction ancestor_0--this

Ancestors

Constructors

lsp_code_action_new

Creates a new LspCodeAction.

lsp_code_action_new_from_variant
No description available.

Instance methods

lsp_code_action_get_kind

Gets the value of kind.

lsp_code_action_set_kind

Sets the value of kind.

lsp_code_action_get_preferred

Gets the value of preferred.

lsp_code_action_set_preferred

Sets the value of preferred.

lsp_code_action_get_disabled_reason

Gets the value of disabled_reason.

lsp_code_action_set_disabled_reason

Sets the value of disabled_reason.

lsp_code_action_get_diagnostics

Gets the value of diagnostics.

lsp_code_action_set_diagnostics

Sets the value of diagnostics.

lsp_code_action_add_diagnostic

Appends a diagnostic to LspCodeAction:diagnostics.

lsp_code_action_get_edit

Gets the value of edit.

lsp_code_action_set_edit

Sets the value of edit.

lsp_code_action_get_command

Gets the value of command.

lsp_code_action_set_command

Sets the value of command.

lsp_code_action_get_data

Gets the value of data.

lsp_code_action_set_data

Sets the value of data.

Methods inherited from LspAction (3)
lsp_action_get_title

Gets the value of title.

lsp_action_set_title

Sets the value of title.

lsp_action_to_variant

Serialize this action to a GVariant.

Class structure

struct LspCodeActionClass {
  /* no available fields */
}

No description available.