Broken Astro imports in Typescript files #21697
Labels
astro
Astro.js framework support
bug
[core label]
language server
An umbrella label for all language servers
language
An umbrella label for all programming languages syntax behaviors
tooling
An umbrella label for language tools, linters, formatters, etc
typescript
TypeScript programming language support
Check for existing issues
Describe the bug / provide steps to reproduce it
Even after installing the Astro extension,
.ts
files shows squiggly lines on Astro imports.Workaround
To fix this issue, you can there are few methods:
@astrojs/ts-plugin
By modifying your project's
tsconfig.json
file (source):or
Use
vtsls
(source):Note: This still requires you to install plugin locally or globally.
This requires significant manual configuration. Ideally, this should work out of the box when installing the Astro extension.
Environment
Zed: v0.165.3 (Zed Preview)
OS: Linux Wayland ubuntu 24.04
Memory: 31.1 GiB
Architecture: x86_64
GPU: Intel(R) Graphics (RPL-S) || Intel open-source Mesa driver || Mesa 24.0.9-0ubuntu0.2
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your Zed.log file to this issue.
Zed.log
The text was updated successfully, but these errors were encountered: