Add suffix based file icons

This commit is contained in:
Mikayla Maki
2023-07-19 11:10:30 -07:00
parent 91ba80ae98
commit d26f76ba90
6 changed files with 62 additions and 14 deletions
+5
View File
@@ -2474,6 +2474,11 @@ impl Project {
})
}
pub fn icon_for_path(&self, path: &Path) -> Option<Arc<str>> {
self.languages
.icon_for_suffix(path.extension()?.to_str()?)
}
fn detect_language_for_buffer(
&mut self,
buffer_handle: &ModelHandle<Buffer>,