Skip to content

Commit

Permalink
Added ariadne path removal on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
IBims1NicerTobi committed Dec 5, 2024
1 parent 6e454a8 commit b5f4fc3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/dev_aid/ariadne_interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ impl Cache<FileUUID> for (&Linker, &mut ArenaVector<Source<String>, FileUUIDMark
Ok(&self.1[*id])
}
fn display<'a>(&self, id: &'a FileUUID) -> Option<Box<dyn std::fmt::Display + 'a>> {
Some(Box::new(self.0.files[*id].file_identifier.clone()))
if config().ci {
let filename = self.0.files[*id].file_identifier.rsplit("/").next().unwrap_or(self.0.files[*id].file_identifier.as_str());
Some(Box::new(filename.to_string()))
} else {
Some(Box::new(self.0.files[*id].file_identifier.clone()))
}

}
}

Expand Down

0 comments on commit b5f4fc3

Please sign in to comment.