🐛 fix(vscode): React 规则在导入了 react 的 .ts / .js 文件上也启用,自定义钩子和钩子调用照常出卡片

This commit is contained in:
cruldra committed 2026-10-16 20:50:12 +11:00
1 parent 2ccec54747
commit 9f736d92e7
23 files changed
+141 -36

No files matched your search

@@ -111,7 +111,7 @@ describe('路由筛选后展开函数体', () => {
parsed,
{ source, language, markers: [] },
pythonZhTranslator,
{ rules: [fastapiRule], report: (message) => { throw new Error(message) } },
{ languageId: 'python', rules: [fastapiRule], report: (message) => { throw new Error(message) } },
))
const blocks = pageBlocks(views, source)
const route = blocks.find(block => block.kind === 'fastapi.route')!