Always reload log files whenever they change

This commit is contained in:
Patrick Förster 2021-11-06 15:29:07 +01:00
parent 1265f8965a
commit 95efdb138b

View file

@ -33,7 +33,7 @@ pub trait Workspace: Send + Sync {
fn reload(&self, path: PathBuf) -> Result<Option<Arc<Document>>> {
let uri = Arc::new(Uri::from_file_path(path.clone()).unwrap());
if self.is_open(&uri) {
if self.is_open(&uri) && !uri.as_str().ends_with(".log") {
return Ok(self.get(&uri));
}