Add suffix based file icons
This commit is contained in:
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user