Fix diagnostic pane not being closeable
This commit is contained in:
parent
6f4b6eec5b
commit
e59c8e9d61
2 changed files with 19 additions and 9 deletions
|
@ -7128,6 +7128,7 @@ pub enum Event {
|
|||
BufferEdited,
|
||||
Edited,
|
||||
Reparsed,
|
||||
Focused,
|
||||
Blurred,
|
||||
DirtyChanged,
|
||||
Saved,
|
||||
|
@ -7181,6 +7182,7 @@ impl View for Editor {
|
|||
fn focus_in(&mut self, _: AnyViewHandle, cx: &mut ViewContext<Self>) {
|
||||
if cx.is_self_focused() {
|
||||
let focused_event = EditorFocused(cx.handle());
|
||||
cx.emit(Event::Focused);
|
||||
cx.emit_global(focused_event);
|
||||
}
|
||||
if let Some(rename) = self.pending_rename.as_ref() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue