]> git.lizzy.rs Git - rust.git/blobdiff - crates/completion/src/item.rs
Reuse existing element rendering
[rust.git] / crates / completion / src / item.rs
index f23913935c0e018e7d3287422c6efedd02a70512..53a12a763d3ef2a7c48622ddef4201963cacaa25 100644 (file)
@@ -218,6 +218,10 @@ pub fn text_edit(&self) -> &TextEdit {
         &self.text_edit
     }
 
+    pub fn update_text_edit(&mut self, new_text_edit: TextEdit) {
+        self.text_edit = new_text_edit;
+    }
+
     /// Short one-line additional information, like a type
     pub fn detail(&self) -> Option<&str> {
         self.detail.as_deref()