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:
parent
d193c9a358
commit
3a439f141d
3 changed files with 34 additions and 14 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue