✨ feat(vscode): 代码阅读预览 Rust 的语言卡片

This commit is contained in:
cruldra committed 2026-10-04 14:24:55 +08:00
1 parent 4480f936f3
commit 6d58b681cf
15 files changed
+1016 -6

No files matched your search

+3
View File
@@ -26,6 +26,9 @@ function factAttributes(block: CodeBlock): Partial<Record<CommonAttribute, strin
return { access: block.facts.access, async: flag(block.facts.async) }
case 'class':
return { access: block.facts.access, abstract: flag(block.facts.abstract) }
case 'trait':
case 'impl':
return { access: block.facts.access }
case 'enum':
case 'exception':
case 'const':