Open settings file in new window if current window isn't local

Co-Authored-By: Keith Simmons <keith@zed.dev>
This commit is contained in:
Max Brunsfeld 2022-03-14 17:12:07 -07:00
parent d193c9a358
commit 3a439f141d
3 changed files with 34 additions and 14 deletions

View file

@ -3699,7 +3699,7 @@ impl Project {
let buffer_handle = this.read_with(&cx, |this, _| {
this.opened_buffers
.get(&buffer_id)
.map(|buffer| buffer.upgrade(&cx).unwrap())
.and_then(|buffer| buffer.upgrade(&cx))
.ok_or_else(|| anyhow!("unknown buffer id {}", buffer_id))
})?;
let request = T::from_proto(