disposition_lsp 0.3.0

Language server for editing `disposition` `InputDiagram` YAML.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! A single sequence flow/block conversion code action.

use async_lsp::lsp_types::TextEdit;

/// A proposed conversion of a YAML sequence between its inline and block forms.
///
/// URI-agnostic: the language server wraps `edit` into a `WorkspaceEdit` keyed
/// by the document's URI when responding to a `textDocument/codeAction`
/// request.
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct ListConversion {
    /// Human-readable action title, e.g. `` Convert `things` to a block list
    /// ``.
    pub title: String,
    /// The single edit that rewrites the sequence in place.
    pub edit: TextEdit,
}