Unnamed repository; edit this file 'description' to name the repository.
good ieda
| -rw-r--r-- | helix-lsp-types/src/lib.rs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/helix-lsp-types/src/lib.rs b/helix-lsp-types/src/lib.rs index 30537574..06d75367 100644 --- a/helix-lsp-types/src/lib.rs +++ b/helix-lsp-types/src/lib.rs @@ -584,7 +584,7 @@ pub struct TextDocumentEdit { /// /// @since 3.16.0 - support for AnnotatedTextEdit. This is guarded by the /// client capability `workspace.workspaceEdit.changeAnnotationSupport` - pub edits: Vec<OneOf<TextEdit, AnnotatedTextEdit>>, + pub edits: Vec<SnippetTextEdit>, } /// Additional information that describes document changes. @@ -707,6 +707,18 @@ pub struct DeleteFile { pub options: Option<DeleteFileOptions>, } +#[derive(Debug, Eq, PartialEq, Clone, Deserialize, Serialize)] +#[serde(rename_all = "camelCase")] +pub struct SnippetTextEdit { + #[serde(flatten)] + pub text_edit: TextEdit, + #[serde(skip_serializing_if = "Option::is_none")] + pub insert_text_format: Option<InsertTextFormat>, + /// The annotation id if this is an annotated + #[serde(skip_serializing_if = "Option::is_none")] + pub annotation_id: Option<ChangeAnnotationIdentifier>, +} + /// A workspace edit represents changes to many resources managed in the workspace. /// The edit should either provide `changes` or `documentChanges`. /// If the client can handle versioned document edits and if `documentChanges` are present, |