Hi, I don't know what exactly I did that broke it but I followed the guide to create a content collection this morning. Since then IntelliSense/Autocomplete is broken in all my Astro projects.
when I type import H... in a component frontmatter I don't get the autocomplete options anymore (Hero, Header etc.)
What I did so far:
- Restart the dev server + vs code
- Deactivate and Activate the Astro VS Code extension
What exactly is needed for this feature to work?
tsconfig.json:
{
"extends": "astro/tsconfigs/base",
"compilerOptions": {
"strictNullChecks": true,
"allowJs": true
}
}
src/env.d.ts
/// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client" />
/// <reference types="@astrojs/image/client" />