# Fix \#24314 \- File icons missing for hidden files \(\#24391\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/9c132fece533ff0359faa8df8e58eb6ac1426019)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 9c132fece533ff0359faa8df8e58eb6ac1426019

Requested commit: 9c132fece533ff0359faa8df8e58eb6ac1426019

Commit: 9c132fece533ff0359faa8df8e58eb6ac1426019

Tree: 2e55af6cf2d633cc7cddec0d314e7576319682c2

Author: Ben Kunkle

Committer: GitHub

## Message

```
Fix #24314 - File icons missing for hidden files (#24391)

- **fix ignoring ignored files when matching icons**
- **remove poorly named and confusing method
`PathExt.icon_stem_or_suffix` and refactor
`PathExt.extension_or_hidden_file_name` to actually do what it says it
does**

Closes #24314

Release Notes:

- Fixed an issue where hidden files would have the default icon instead
of the correct one
- Fixed an issue where files with specific icons (such as
`eslint.config.js`) would not have the their specific icon without a
leading `.` (`.eslint.config.js`)
```

## Parents

- [ad46c5b567edef734ad372170d1282160c719fa0](https://git.cafe/gitcafe/zed/commit/ad46c5b567edef734ad372170d1282160c719fa0?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/9c132fece533ff0359faa8df8e58eb6ac1426019?format=markdown)
