-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
🐛 BUG: Reload Window Required After Creating Layout or Component for Intellisense to Recognize #685
Comments
If you try to use the quick fix to import the component, does it work? |
Yes the quick fix will bring up a window to allow you to import it. I also just noticed while trying to test this that it looks like the first one I create will work and import correctly after opening a new project but successive ones will not. I opened VSCode, created layout QuickFix.astro and went to put it in MainLayout.astro and intellisense worked correctly. Making the second layout called AnotherQuick.astro and trying to insert in Mainlayout.astro gave the same bug as reported. I was able to test the quick fix on and get it to import. Screenshot is from a third layout showing quick fix pop-up. |
I believe this is a bug in https://github.com/volarjs/typescript-auto-import-cache, thank you for the issue! I'll keep this open and mark it as being upstream. |
Is there a way to maybe disable the typescript auto import cache in VS Code? |
I have the same problem, it seems to happen only on linux. |
I also encountered this issue on macos. |
Happens on Windows as well. I also want to add that Astro files still show as suggestions even when they are deleted until the next reload/restart of the extension, it doesn't add the import statements if you do click or press enter on the bugged suggestion. |
For what it is worth: it is enough for me to run "Astro: reload project" to get it working again. That's a lot quicker than reloading the whole window. |
The latest version of the extension should improve the problem here somewhat, however there are still some issues remaining. Apologies for the inconvenience, it was a tough nut to crack! |
Same problem on windows. (astro extension v2.8.4) |
The vast majority of these issues have been fixed in recent updates and we're getting less and less reports of this happening. There are still some remaining caching issues around deletions that are being worked on independently from this, but I cannot reproduce issues around creating new components anymore. If this still happens, please create a new issue with reproduction steps! |
Describe the Bug
Every time I create a new layout or component and attempt to use it I have to ctrl+shift+p -> Reload Window to refresh VSCode in order for Intellisense to recognize it and not give an error.
If I either close VS Code and reopen or I ctrl+shift+p -> Reload Window the component or layout will immediately be available and work correctly.
Steps to Reproduce
The text was updated successfully, but these errors were encountered: