Merge pull request #2011 from zed-industries/project-reconnection
Retain connection to remote projects when temporarily disconnected
This commit is contained in:
commit
3cffee4065
39 changed files with 3712 additions and 2106 deletions
|
@ -3612,7 +3612,9 @@ impl Editor {
|
|||
}
|
||||
|
||||
pub fn undo(&mut self, _: &Undo, cx: &mut ViewContext<Self>) {
|
||||
dbg!("undo");
|
||||
if let Some(tx_id) = self.buffer.update(cx, |buffer, cx| buffer.undo(cx)) {
|
||||
dbg!(tx_id);
|
||||
if let Some((selections, _)) = self.selection_history.transaction(tx_id).cloned() {
|
||||
self.change_selections(None, cx, |s| {
|
||||
s.select_anchors(selections.to_vec());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue