Don't return error when definition, completions, etc. are unavailable
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
3fc3e51a44
commit
763d57c94a
2 changed files with 21 additions and 24 deletions
|
@ -2297,7 +2297,7 @@ impl History {
|
|||
T: IntoIterator<Item = (&'a ModelHandle<Buffer>, &'a language::Transaction)>,
|
||||
{
|
||||
assert_eq!(self.transaction_depth, 0);
|
||||
self.undo_stack.push(Transaction {
|
||||
let transaction = Transaction {
|
||||
id: self.next_transaction_id.tick(),
|
||||
buffer_transactions: buffer_transactions
|
||||
.into_iter()
|
||||
|
@ -2306,7 +2306,10 @@ impl History {
|
|||
first_edit_at: now,
|
||||
last_edit_at: now,
|
||||
suppress_grouping: false,
|
||||
});
|
||||
};
|
||||
if !transaction.buffer_transactions.is_empty() {
|
||||
self.undo_stack.push(transaction);
|
||||
}
|
||||
}
|
||||
|
||||
fn finalize_last_transaction(&mut self) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue