use serde::Serialize;
use crate::language::Language;
#[derive(Clone, Debug, PartialEq, Eq, Serialize)]
#[serde(tag = "type", rename_all = "snake_case")]
pub enum Cmd {
Init {
mount_id: String,
cm_base: String,
doc: String,
allow_multiple_selections: bool,
bracket_matching: bool,
close_brackets: bool,
code_actions: bool,
highlight_active_line: bool,
highlight_selection_matches: bool,
highlight_whitespace: bool,
indent_on_input: bool,
indent_with_tab: bool,
language: Option<Language>,
line_numbers: bool,
line_wrapping: bool,
lsp_uri: Option<String>,
read_only: bool,
rectangular_selection: bool,
tab_size: Option<u8>,
},
DocSet { doc: String },
LspMessageSend { json: String },
Destroy,
}