Packages

p

org.mulesoft.lsp.feature

codeactions

package codeactions

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. case class CodeAction(title: String, kind: Option[CodeActionKind], diagnostics: Option[Seq[Diagnostic]], isPreferred: Option[Boolean], edit: Option[WorkspaceEdit], command: Option[Command]) extends Product with Serializable

    title

    A short, human-readable, title for this code action.

    kind

    The kind of the code action. Used to filter code actions.

    diagnostics

    The diagnostics that this code action resolves.

    isPreferred

    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.

    edit

    The workspace edit this code action performs.

    command

    A command this code action executes. If a code action provides an edit and a command, first the edit is executed and then the command.

  2. case class CodeActionCapabilities(dynamicRegistration: Option[Boolean], codeActionLiteralSupport: Option[CodeActionLiteralSupportCapabilities], isPreferredSupport: Option[Boolean]) extends Product with Serializable

    Capabilities specific to the textDocument/codeAction

    Capabilities specific to the textDocument/codeAction

    dynamicRegistration

    Whether code action supports dynamic registration.

    codeActionLiteralSupport

    The client supports code action literals as a valid response of the textDocument/codeAction request.

    isPreferredSupport

    Whether code action supports the isPreferred property.

  3. case class CodeActionContext(diagnostics: Seq[Diagnostic], only: Option[Seq[CodeActionKind]]) extends Product with Serializable

    diagnostics

    An array of diagnostics known on the client side overlapping the range provided to the textDocument/codeAction request. They are provided so that the server knows which errors are currently presented to the user for the given range. There is no guarantee that these accurately reflect the error state of the resource. The primary parameter to compute code actions is the provided range.

  4. case class CodeActionKindCapabilities(valueSet: List[CodeActionKind]) extends Product with Serializable

  5. case class CodeActionLiteralSupportCapabilities(codeActionKind: CodeActionKindCapabilities) extends Product with Serializable

    codeActionKind

    : The code action kind is supported with the following value set

  6. trait CodeActionOptions extends AnyRef

    CodeActionKinds that this server may return.

    CodeActionKinds that this server may return.

    The list of kinds may be generic, such as CodeActionKind.Refactor, or the server may list out every specific kind they provide.

  7. case class CodeActionParams(textDocument: TextDocumentIdentifier, range: Range, context: CodeActionContext) extends Product with Serializable
  8. case class CodeActionRegistrationOptions(codeActionKinds: Option[Seq[CodeActionKind]] = None) extends CodeActionOptions with TextDocumentRegistrationOptions with Product with Serializable

    CodeActions options.

    CodeActions options.

    codeActionKinds

    CodeActionKinds that this server may return. The list of kinds may be generic, such as CodeActionKind.Refactor, or the server may list out every specific kind they provide.

Value Members

  1. object CodeActionConfigType extends ConfigType[CodeActionCapabilities, CodeActionOptions] with Product with Serializable
  2. object CodeActionKind extends Enumeration with Product with Serializable

    A set of predefined code action kinds.

  3. object CodeActionRequestType extends RequestType[CodeActionParams, Seq[CodeAction]] with Product with Serializable

Ungrouped