antfu / vscode-iconify

🙂 Iconify IntelliSense for VS Code
https://marketplace.visualstudio.com/items?itemName=antfu.iconify
MIT License
453 stars 33 forks source link

Using `/` as separator between collection and icon name no longer works by default #57

Closed Legend-Master closed 11 months ago

Legend-Master commented 11 months ago

Describe the bug

After 124d5174a7e2e2d802ab34a93e0e6ad5b37dc48c, using / as separator between collection and icon name (e.g. https://github.com/antfu/unplugin-icons#usage) no longer works by default (can be configured in settings though)

import IconAccessibility from '~icons/carbon/accessibility'
import IconAccountBox from '~icons/mdi/account-box'

Since you removed it explicitly, is this syntax considered bad or something?

Reproduction

-

System Info

-

Used Package Manager

npm

Validations

antfu commented 11 months ago

Oh, it was removed for a false positive in the import path. I forgot about this usage, added it back.