Packages

package edits

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. case class AbstractWorkspaceEdit(documentChanges: Seq[Either[TextDocumentEdit, ResourceOperation]]) extends Product with Serializable

Value Members

  1. object AbstractWorkspaceEdit extends Serializable
  2. object YamlEditBuilder

    Utility object for building LSP TextEdits from YAML/JSON AST modifications.

    Utility object for building LSP TextEdits from YAML/JSON AST modifications.

    Responsibility

    This object is responsible for creating TextEdit instances that represent modifications to YAML or JSON documents. It handles:

    • Updating existing scalar values
    • Creating new property entries with proper formatting
    • Removing entries (including multi-line content)
    • Finding entries by key name
    • Calculating indentation and insertion positions
    • Formatting scalar values with proper quoting for YAML/JSON

    Usage

    This utility is designed to be reusable across different editing operations such as setNodeProperties, setGraph, and other YAML modification features.

    Line Indexing

    SYAML uses 1-indexed line numbers while LSP uses 0-indexed. This object handles the conversion internally using AmfPosition and Position classes.

    Related Classes

    • org.mulesoft.als.common.YamlUtils - Position-based YAML navigation and queries
    • org.mulesoft.als.actions.formatting.SyamlImpl - YAML formatting/reformatting
    • org.mulesoft.als.common.YPartBranch - AST branch context and navigation
    See also

    org.mulesoft.lsp.edit.TextEdit

Ungrouped