Give the editor a handle to the project, not a weak handle to the workspace
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
co-authored by
Nathan Sobo
parent
624dbc1d0e
commit
6731d92f60
@@ -148,7 +148,7 @@ impl ProjectDiagnosticsEditor {
|
||||
let mut editor = Editor::for_buffer(
|
||||
excerpts.clone(),
|
||||
build_settings.clone(),
|
||||
Some(workspace.clone()),
|
||||
Some(project.clone()),
|
||||
cx,
|
||||
);
|
||||
editor.set_vertical_scroll_margin(5, cx);
|
||||
|
||||
Reference in New Issue
Block a user