open new buffer (#11203)
Release Notes: - Allow creating new untitled buffers in remote projects TODO: - Add a Test - Fix version number check
This commit is contained in:
parent
28bcc95468
commit
3752ed294d
19 changed files with 276 additions and 111 deletions
|
@ -142,11 +142,9 @@ impl FeedbackModal {
|
|||
|
||||
cx.spawn(|workspace, mut cx| async move {
|
||||
let markdown = markdown.await.log_err();
|
||||
let buffer = project
|
||||
.update(&mut cx, |project, cx| {
|
||||
project.create_buffer("", markdown, cx)
|
||||
})?
|
||||
.expect("creating buffers on a local workspace always succeeds");
|
||||
let buffer = project.update(&mut cx, |project, cx| {
|
||||
project.create_local_buffer("", markdown, cx)
|
||||
})?;
|
||||
|
||||
workspace.update(&mut cx, |workspace, cx| {
|
||||
let system_specs = SystemSpecs::new(cx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue