feat(astro): add Astro language support and editor mode (#712)

Astro files get their own language: TypeScript frontmatter, HTML template with TSX expressions in text and tags, TypeScript scripts, astro-ls and oxlint servers, and file-type icons.
Цей коміт міститься в:
d0whc3r authored and GitHub committed 2026-11-06 09:44:09 +08:00
1 джерело a6987b3eaa
коміт ad382a7824
20 files changed
+479 -9

No files matched your search

+4 -1
Переглянути файл
@@ -40,7 +40,10 @@ function actionTitles(): Map<string, string> {
for (const title of literals(node)) titles.set(title, `${source.fileName.slice(root.length)}:${line}`);
};
for (const source of program.getSourceFiles()) {
if (!source.fileName.startsWith(`${root}src/`) || /\.test\.tsx?$|\/__tests__\/|\/test\//.test(source.fileName))
if (
!source.fileName.startsWith(`${root}src/`) ||
/\.test\.tsx?$|\/__tests__\/|\/test\//.test(source.fileName.slice(root.length))
)
continue;
const visit = (node: ts.Node) => {
if (