Add unit test for diagnostic + path header ordering

This commit is contained in:
Max Brunsfeld 2022-01-12 11:34:57 -08:00
parent 6ad9ff10c1
commit ed88fdcea2
3 changed files with 216 additions and 51 deletions

View file

@ -980,7 +980,11 @@ impl Workspace {
}
pub fn activate_next_pane(&mut self, cx: &mut ViewContext<Self>) {
let ix = self.panes.iter().position(|pane| pane == &self.active_pane).unwrap();
let ix = self
.panes
.iter()
.position(|pane| pane == &self.active_pane)
.unwrap();
let next_ix = (ix + 1) % self.panes.len();
self.activate_pane(self.panes[next_ix].clone(), cx);
}