Method

LspCodeActionset_preferred

Declaration

void
lsp_code_action_set_preferred (
  LspCodeAction* self,
  gboolean value
)

Description

Sets 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.

Parameters

value

Type: gboolean

The new value of preferred.