| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix(ts-plugin): only inject Astro types into Astro projects (#17668) | 1 个月前 | |
Find Astro.locals references from .ts files in the TypeScript plugin (#17269) * fix(ts-plugin): find Astro.locals references in .astro files Go To References from a .ts file missed usages inside .astro files that are reached through Astro.locals (or that import nothing). The ts-plugin never ported two things the language server does: - inject the installed Astro package's env.d.ts and astro-jsx.d.ts so the Astro global is declared and type chains like Astro.locals.utils.toUpper() resolve - include tsconfig-matched .astro files in the TypeScript program so files with no import chain are still searched Also pass includeScripts/includeStyles: false to convertToTSX (matching the language server) to strip script/style bodies that were wrapped in invalid arrow functions. Fixes #16078 * Drop ineffective .astro file discovery; keep type injection .astro files already enter the TS program via Volar's external files mechanism; adding them through getScriptFileNames is a no-op since TypeScript drops unknown extensions from root files. The meaningful fix is injecting astro/env.d.ts + astro-jsx.d.ts so the Astro global (and the Astro.locals type chain) resolves. | 3 个月前 | |
feat: erasableSyntaxOnly (#15719) | 6 个月前 | |
fix(ts-plugin): only inject Astro types into Astro projects (#17668) | 1 个月前 | |
feat: erasableSyntaxOnly (#15719) | 6 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 个月前 | ||
| 3 个月前 | ||
| 6 个月前 | ||
| 1 个月前 | ||
| 6 个月前 |