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

Customizing import intellisense #51

Open
Fractal-Tess opened this issue Aug 14, 2022 · 0 comments
Open

Customizing import intellisense #51

Fractal-Tess opened this issue Aug 14, 2022 · 0 comments

Comments

@Fractal-Tess
Copy link

Hey there,

First of all, thank you for creating this amazing plugin.
Second, I have a question about the IntelliSense behind file importing.

I'm currently working on a monorepo with with a assets package which I'm trying to import files from,
It works great (functionality-wise), there are no crashes or errors when the svelte compiler runs through the code and the imported static files display perfectly fine.
However, I'm still very curious if there is a way for me to extend the config of the svelte-extension to support non-js/ts/svelte files.
Currently, when importing, only the folder structure is shown.
Although the static files (such as png,gif,svg and so on) are right there and can be imported fine, the IntelliSense is display errors.
To fix the errors, I converted the assets package into a dummy svelte-kit project with a .svelte-kit folder to get rid of them.
Although this solves the error issue, it doesn't help whatsoever when it comes down to displaying the static files.

Any recommendations?

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

1 participant