diff --git a/core/config/markdown/loadCodebaseRules.ts b/core/config/markdown/loadCodebaseRules.ts index b0d8cac6d..a239f56f1 100644 --- a/core/config/markdown/loadCodebaseRules.ts +++ b/core/config/markdown/loadCodebaseRules.ts @@ -33,7 +33,7 @@ export async function loadCodebaseRules(ide: IDE): Promise<{ const content = await ide.readFile(filePath); const rule = markdownToRule(content, { uriType: "file", filePath }); - rules.push({ ...rule, source: "rules-block" }); + rules.push({ ...rule, source: "rules-block", ruleFile: filePath }); } catch (e) { errors.push({ fatal: false, diff --git a/core/config/markdown/loadMarkdownRules.ts b/core/config/markdown/loadMarkdownRules.ts index dd506f75c..e3d32e237 100644 --- a/core/config/markdown/loadMarkdownRules.ts +++ b/core/config/markdown/loadMarkdownRules.ts @@ -33,7 +33,7 @@ export async function loadMarkdownRules(ide: IDE): Promise<{ uriType: "file", filePath: file.path, }); - rules.push({ ...rule, source: "rules-block" }); + rules.push({ ...rule, source: "rules-block", ruleFile: file.path }); } catch (e) { errors.push({ fatal: false,