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

🐛 BUG: IntelliSense completions (w/ auto-imports) stops working until window is reloaded #983

Closed
baranelitez opened this issue Dec 12, 2024 · 2 comments
Labels
needs triage Issue needs to be triaged

Comments

@baranelitez
Copy link

Describe the Bug

When a new .astro file is created under ./src/components, it requires VSCode to be restarted for autocomplete to work.

There had been cases where the first created file worked (after 5-6 saves on the file), but the second or third NEVER works.

Tried it in my computer, and also in a friend's computer with no prior vscode/pnpm/node installation to check if the case is on my side. The issue persists on friend's computer too.

Steps to Reproduce

  1. pnpm create astro@latest and choose basic and minimal template
  2. open .src/pages/index.astro
  3. remove the <Welcome/> component, and start typing <Wel.... Notice how it autocompletes.
  4. create a new file called TestA.astro in ./src/components/. Leave it empty.
  5. go back to .src/pages/index.astro. Try typing <Tes.... Notice how it doesn't autocomplete
  6. open command pallete and Reload Window. Try step #5 again. Notice how it works now.
  7. If #5 works without problems, try creating a file called TestB.astro. I could never make it work for the 2nd file.

Link to Minimal Reproducible Example

non applicable. use the template. reproduction depends on manual file creation.

@github-actions github-actions bot added the needs triage Issue needs to be triaged label Dec 12, 2024
@baranelitez
Copy link
Author

Here, it works for the already existing Welcome.astro when I start typing
image

I create a file called TestA.astro. Now it doesn't autocomplete.
image
image

I reload VSCode, and it starts working
image

@Princesseuh
Copy link
Member

Duplicate of #958

@Princesseuh Princesseuh marked this as a duplicate of #958 Dec 12, 2024
@Princesseuh Princesseuh closed this as not planned Won't fix, can't repro, duplicate, stale Dec 12, 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