Open both old and new log files, but just retain the last 1000 lines

This commit is contained in:
Antonio Scandurra 2022-07-28 10:25:40 +02:00
parent de35c3f99d
commit df6e733e68
2 changed files with 60 additions and 4 deletions

View file

@ -949,11 +949,11 @@ impl Workspace {
&mut self,
cx: &mut ViewContext<Self>,
app_state: Arc<AppState>,
mut callback: F,
callback: F,
) -> T
where
T: 'static,
F: FnMut(&mut Workspace, &mut ViewContext<Workspace>) -> T,
F: FnOnce(&mut Workspace, &mut ViewContext<Workspace>) -> T,
{
if self.project.read(cx).is_local() {
callback(self, cx)