๐ BUG: Import auto-completion issue in VS Code for new components
riki137 opened this issue ยท 1 comments
riki137 commented
Describe the Bug
When creating a new .astro file (component) in Visual Studio Code, the Astro.js plugin does not automatically provide import auto-completion for the newly created component. This results in manual import statements being required for the new component to be recognized in the code.
Expected Behavior:
Auto-completion for the import statement should be triggered by the Astro.js plugin when a new component is created, eliminating the need for manual import statements.
Workaround:
Restarting Visual Studio Code resolves the issue, and auto-completion works as expected for the newly created component.
Environment:
- Visual Studio Code Version: 1.86.1
- Astro.js Plugin Version: 2.7.5
- Operating System: Linux, Pop!_OS 22.04
Steps to Reproduce
- Create a new .astro file (component) in your Astro.js project.
- Attempt to use the new component in another file.
- Notice that auto-completion for the import statement is not provided by the Astro.js plugin.
Princesseuh commented
Duplicate of #685