mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-05 10:20:51 +00:00
Support uppercase extensions in image preview (#19304)
This commit is contained in:
parent
8c910540ed
commit
5ad392035e
1 changed files with 2 additions and 0 deletions
|
@ -36,7 +36,9 @@ impl project::Item for ImageItem {
|
||||||
.path
|
.path
|
||||||
.extension()
|
.extension()
|
||||||
.and_then(OsStr::to_str)
|
.and_then(OsStr::to_str)
|
||||||
|
.map(str::to_lowercase)
|
||||||
.unwrap_or_default();
|
.unwrap_or_default();
|
||||||
|
let ext = ext.as_str();
|
||||||
|
|
||||||
// Only open the item if it's a binary image (no SVGs, etc.)
|
// Only open the item if it's a binary image (no SVGs, etc.)
|
||||||
// Since we do not have a way to toggle to an editor
|
// Since we do not have a way to toggle to an editor
|
||||||
|
|
Loading…
Reference in a new issue