Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some icons won't show a preview #80

Open
5 of 7 tasks
seahindeniz opened this issue May 29, 2024 · 3 comments
Open
5 of 7 tasks

Some icons won't show a preview #80

seahindeniz opened this issue May 29, 2024 · 3 comments

Comments

@seahindeniz
Copy link

Describe the bug

I'm importing icons from HugeIcons set however, the extension doesn't show any preview

--

```ts
import IconPersonAccounts from '~icons/fluent/person-accounts-24-regular';
import IconAnalytic from '~icons/hugeicons/analytics-up';
import IconBriefcaseDollar from '~icons/hugeicons/briefcase-dollar';
import IconBuilding from '~icons/hugeicons/building-05';
import IconDashboardSquare from '~icons/hugeicons/dashboard-square-03';
import IconMailAtSign from '~icons/hugeicons/mail-at-sign-01';
import IconReportsSolid from '~icons/iconoir/reports-solid';
import IconWrenchClockOutline from '~icons/mdi/wrench-clock-outline';

image

Reproduction

I'm not sure if I can provide a repro case

System Info

System:
    OS: Windows 11 10.0.22000
    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
    Memory: 4.95 GB / 23.89 GB
  Binaries:
    Node: 20.12.2 - C:\Program Files\nodejs\node.EXE
    npm: 10.5.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.0.6 - ~\AppData\Local\pnpm\pnpm.EXE
  Browsers:
    Edge: Spartan (44.22000.120.0), Chromium (122.0.2365.66)
    Internet Explorer: 11.0.22000.120

---

Name: Iconify IntelliSense
Id: antfu.iconify
Description: Intelligent Iconify previewing and searching for VS Code
Version: 0.8.1
Publisher: Anthony Fu
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=antfu.iconify

---

"unplugin-icons": "0.19.0",

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Contributions

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)
@prazdevs
Copy link

If you toggle in-place mode off and back on again, it should redownload icons from the set and display them.
I had that happen. Maybe this could be resolved 🤔

@ChrisGV04
Copy link

There's also a command you can run from the command palette called Iconify: Clear icon cache which fixed this issue for me.

@cMing1997
Copy link

Even if I turn off and restart many times, there will not be any change, or do not show

There seems to be some named icons under the plug-in that does not support previewing

image

Another problem is that the previews seem to have problems with regular matching

According to the official website:
image
vscode preview:

image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants