Re-render breadcrumbs when buffer has been reparsed
This commit is contained in:
parent
d0a17f8c2c
commit
b0b54365c7
2 changed files with 4 additions and 1 deletions
|
@ -110,7 +110,8 @@ impl ToolbarItemView for Breadcrumbs {
|
|||
.push(cx.subscribe(&editor, |_, _, event, cx| match event {
|
||||
editor::Event::BufferEdited
|
||||
| editor::Event::TitleChanged
|
||||
| editor::Event::Saved => cx.notify(),
|
||||
| editor::Event::Saved
|
||||
| editor::Event::Reparsed => cx.notify(),
|
||||
editor::Event::SelectionsChanged { local } if *local => cx.notify(),
|
||||
_ => {}
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue