From e4b08ff8053aae25b878aa214d52eaad2cf5fc52 Mon Sep 17 00:00:00 2001 From: chezsmithy Date: Wed, 2 Jul 2025 17:06:30 -0700 Subject: [PATCH] fix: :bug: The edit rules button doesn't open the rule file --- core/config/markdown/loadCodebaseRules.ts | 2 +- core/config/markdown/loadMarkdownRules.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,