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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 BUG: Import auto-completion issue in VS Code for new components #808

Closed
riki137 opened this issue Feb 24, 2024 · 1 comment
Closed
Labels
needs triage Issue needs to be triaged

Comments

@riki137
Copy link

riki137 commented Feb 24, 2024

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

  1. Create a new .astro file (component) in your Astro.js project.
  2. Attempt to use the new component in another file.
  3. Notice that auto-completion for the import statement is not provided by the Astro.js plugin.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Feb 24, 2024
@Princesseuh
Copy link
Member

Duplicate of #685

@Princesseuh Princesseuh marked this as a duplicate of #685 Feb 24, 2024
@Princesseuh Princesseuh closed this as not planned Won't fix, can't repro, duplicate, stale Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants