skip handleCompleteDone if edits is empty, fix ncm2/ncm2#16
@@ -2217,6 +2217,10 @@ impl State {
edits.extend(aedits.clone());
};
+ if edits.is_empty() {
+ return Ok(())
+ }
+
self.apply_TextEdits(filename, &edits)?;
self.cursor(line + 1, character + 1)
}
