Open lee-arnold opened 1 month ago
Everything works as expected for me when following your instructions:
https://github.com/user-attachments/assets/abb57f4e-2d48-46ac-b2f5-28f36d43f34e
I'm not sure how to debug this further.
Hey, thanks for the response. Can I ask what OS and versions you're using? I haven't had a chance to test any others yet.
This is on macOS, 2.14.2 of the Astro extension, VS Code 1.93.1.
I am having this same problem, but on Ubuntu 22.04 with VS Code 1.92.1
I've noticed with further use that it also fails to recognise new exported functions in files that already existed, again resolved by restarting the language server.
Describe the Bug
MacOS VS Code extension: 2.14.2 Npm: 10.8.3 Node: 22.9.0 VS Code: 1.93.1
Intelisense in frontmatter imports doesn't seem to be working as expected when dealing with new typescript files. Sometimes I can get it to work for the first instance of a file, but then it fails to import any other files. Either way, reloading the editor after creating any new files fixes the issue.
Steps to Reproduce
npm create astro@latest
(4.15.9 as of today)anything.ts
with the contentsexport const anything = "anything";
another.ts
with the contentsexport const another = "another";
index.astro
and try to import the exported const.import anyt...
I would expect the import to be listed at the top of the autocomplete list, however it does not appear there.Link to Minimal Reproducible Example
https://github.com/lee-arnold/astro-issue-example