✨ feat(vscode): 代码阅读的 React 钩子统一成一张钩子卡片,照签名排参数和返回,自定义钩子有自己的卡片

This commit is contained in:
cruldra committed 2026-10-16 20:18:21 +11:00
1 parent 78d0c9dada
commit e7059bcc73
17 files changed
+1409 -589

No files matched your search

@@ -58,9 +58,10 @@ describe('块的种类图标', () => {
})
it('这组图标里每个名字画的就是 lucide 里同名的图标', () => {
// 名字里带数字的图标 lucide 另加一个按组件名起的类(share-2 的 lucide-share2),同名的那个类排在最后
for (const name of Object.keys(KIND_ICON_COMPONENTS) as KindIconName[]) {
const html = render([concept(name, name, name)])
expect(html, name).toContain(`class="lucide lucide-${name}"`)
expect(html, name).toMatch(new RegExp(`class="lucide (?:[\\w-]+ )?lucide-${name}"`))
}
})