✨ feat(vscode): 代码阅读加 Celery 库规则,定时任务表里的任务名能跳到任务函数

This commit is contained in:
cruldra committed 2026-09-26 19:41:07 +08:00
1 parent 905d7845b5
commit 68104e2cba
22 files changed
+2228 -139

No files matched your search

+5
View File
@@ -61,6 +61,11 @@ export class CodeReaderRegistry implements CodeReaderApi {
return this.rules.map(entry => entry.value).filter(rule => rule.languageIds.includes(languageId))
}
/** 注册着的全部库规则,按注册顺序:查规则标的引用时按 id 找。 */
libraryRules(): LibraryRule[] {
return this.rules.map(entry => entry.value)
}
/** 选中的翻译:globalState 里记的那个还注册着就用它,否则用第一个。 */
selectedTranslator(languageId: string): Translator | undefined {
const candidates = this.translatorsFor(languageId)