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

normalizeComponentImportName should include additionalExtensions #2481

Closed
notiv-nt opened this issue Mar 2, 2023 · 0 comments
Closed

normalizeComponentImportName should include additionalExtensions #2481

notiv-nt opened this issue Mar 2, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@notiv-nt
Copy link

notiv-nt commented Mar 2, 2023

I always use svg files as components with plugins like this

But it's a little uncomfortable that autoimport adds file extension (.svg) to the component name

image

image

VSCode settings:

"volar.vueserver.additionalExtensions": ["svg", "vue"],
"volar.completion.normalizeComponentImportName": true,

I'd like to see that normalizeComponentImportName treats svg as components in the same way as vue

If that's ok, I can make a PR

@johnsoncodehk johnsoncodehk added the enhancement New feature or request label Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants