Save an undo checkpoint before accepting completion (#7747)
This commit is contained in:
parent
dea6894f92
commit
6a431afc4e
|
@ -292,6 +292,8 @@ macro_rules! language_server {
|
|||
};
|
||||
// if more text was entered, remove it
|
||||
doc.restore(view, &savepoint, true);
|
||||
// save an undo checkpoint before the completion
|
||||
doc.append_changes_to_history(view);
|
||||
let transaction = item_to_transaction(
|
||||
doc,
|
||||
view.id,
|
||||
|
|
Loading…
Reference in a new issue