# svg_preview: Detect SVG in single-file mode by checking file name \(\#45747\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2cad6c8ef1bc4b3d92c6f787339d469e7817ee3b

Requested commit: 2cad6c8ef1bc4b3d92c6f787339d469e7817ee3b

Commit: 2cad6c8ef1bc4b3d92c6f787339d469e7817ee3b

Tree: 97ec18b073005f70cfee3d09309857883f77b408

Author: Gabe Shahbazian

Committer: GitHub

## Message

```
svg_preview: Detect SVG in single-file mode by checking file name (#45747)

Release Notes:

- Use the files name for "is svg" checks so SVG previews and the toolbar
button work in single-file mode.
```

## Parents

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

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