fix: 🐛 The edit rules button doesn't open the rule file

This commit is contained in:
chezsmithy 2025-07-02 17:06:30 -07:00
parent cffc7613f3
commit e4b08ff805
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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,