Method

LspCodeActionget_preferred

Declaration

gboolean
lsp_code_action_get_preferred (
  LspCodeAction* self
)

Description

Gets the value of preferred.

Marks this as a preferred action. Preferred actions are used by the auto fix command and can be targeted by keybindings.

A quick fix should be marked preferred if it properly addresses the underlying error. A refactoring should be marked preferred if it is the most reasonable choice of actions to take.

Since:

3.15.0.

Return value

Type: gboolean

The value of preferred.