✨ feat(vscode): 代码阅读能读嵌在一种语言里的另一种语言的代码:语言插件报出是哪几段,宿主交给那种语言的插件只解析这几段、分步、翻成子块并叠着上色,外层翻译插件只问读出来的样子;契约加构建文件的几种块(解析指令、阶段、执行、复制、设置、标签、健康检查、启动)、分作用范围的变量、并成一块的几条语句,引擎排这些块的属性表

This commit is contained in:
cruldra committed 2026-09-28 11:53:47 +08:00
1 parent 834673391e
commit 3353cf870c
11 files changed
+603 -103

No files matched your search

@@ -2,20 +2,24 @@ import type { LucideIcon } from 'lucide-react'
import type { ReactElement } from 'react'
import type { BlockKind, BlockView, KindIconName } from './types'
import {
Activity,
Box,
Braces,
CalendarClock,
Code,
Copy,
CornerDownLeft,
CornerDownRight,
Database,
Globe,
Import,
Layers,
ListOrdered,
Lock,
MessageSquareText,
Network,
Package,
Play,
Repeat,
ServerCog,
Shield,
@@ -56,6 +60,10 @@ export const KIND_ICON_COMPONENTS: Record<KindIconName, LucideIcon> = {
'sliders-horizontal': SlidersHorizontal,
'signpost': Signpost,
'square-terminal': SquareTerminal,
'layers': Layers,
'copy': Copy,
'activity': Activity,
'play': Play,
'database': Database,
'package': Package,
'server-cog': ServerCog,
@@ -92,6 +100,14 @@ export const KIND_ICONS: Record<BlockKind, KindIconName> = {
case: 'signpost',
command: 'square-terminal',
pipeline: 'square-terminal',
directive: 'terminal',
stage: 'layers',
run: 'square-terminal',
copy: 'copy',
setting: 'sliders-horizontal',
label: 'tag',
health: 'activity',
start: 'play',
}
/**