-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Open
Labels
- P4: importantViolate documented behavior or significantly impacts performance (priority)Violate documented behavior or significantly impacts performance (priority)
Description
Describe the Bug
Likely similar to #958?
If I make a new Astro component, autocomplete will pick up the new component and let me import it like usual. However, after I import that new component, if I make any more components, it won't pick any of them up and I'll have to manually write out the import.
Reloading VSCode fixes the issue.
VSCode version: 1.105.0
Astro VSCode extension: 2.15.4
OS: Linux/NixOS
Steps to Reproduce
- Clone https://github.com/hf02/shaggy-sphere
npm i;npm run dev- Open src/pages/index.astro
- Create file src/components/Test1.astro
- Try to import Test1.astro into index.astro using autocomplete. It works!
- Create file src/components/Test2.astro
- Try to import Test2.astro into index.astro using autocomplete. It doesn't appear.
Importing the file into index.astro between file creations seems to be critical. If you make Test1.astro and Test2.astro all at once, it'll pick both up normally.
Link to Minimal Reproducible Example
Metadata
Metadata
Assignees
Labels
- P4: importantViolate documented behavior or significantly impacts performance (priority)Violate documented behavior or significantly impacts performance (priority)