Track read_only per project and buffer
This uses a new enum to avoid confusing booleans
This commit is contained in:
parent
bf304b3fe7
commit
84171787a5
19 changed files with 161 additions and 90 deletions
|
@ -151,7 +151,12 @@ impl ProjectDiagnosticsEditor {
|
|||
let focus_in_subscription =
|
||||
cx.on_focus_in(&focus_handle, |diagnostics, cx| diagnostics.focus_in(cx));
|
||||
|
||||
let excerpts = cx.new_model(|cx| MultiBuffer::new(project_handle.read(cx).replica_id()));
|
||||
let excerpts = cx.new_model(|cx| {
|
||||
MultiBuffer::new(
|
||||
project_handle.read(cx).replica_id(),
|
||||
project_handle.read(cx).capability(),
|
||||
)
|
||||
});
|
||||
let editor = cx.new_view(|cx| {
|
||||
let mut editor =
|
||||
Editor::for_multibuffer(excerpts.clone(), Some(project_handle.clone()), cx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue