Rename editor::Event::Edited
to editor::Event::BufferEdited
This is to distinguish it from a new event we're about to add which represent edits originating from that specific editor.
This commit is contained in:
parent
864bede8a2
commit
a739c362d9
11 changed files with 26 additions and 38 deletions
|
@ -5526,10 +5526,10 @@ impl Editor {
|
|||
cx: &mut ViewContext<Self>,
|
||||
) {
|
||||
match event {
|
||||
language::Event::Edited { local } => {
|
||||
language::Event::Edited => {
|
||||
self.refresh_active_diagnostics(cx);
|
||||
self.refresh_code_actions(cx);
|
||||
cx.emit(Event::Edited { local: *local });
|
||||
cx.emit(Event::BufferEdited);
|
||||
}
|
||||
language::Event::Dirtied => cx.emit(Event::Dirtied),
|
||||
language::Event::Saved => cx.emit(Event::Saved),
|
||||
|
@ -5656,7 +5656,7 @@ fn compute_scroll_position(
|
|||
#[derive(Copy, Clone)]
|
||||
pub enum Event {
|
||||
Activate,
|
||||
Edited { local: bool },
|
||||
BufferEdited,
|
||||
Blurred,
|
||||
Dirtied,
|
||||
Saved,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue