fix: 🐛 The edit rules button doesn't open the rule file
This commit is contained in:
parent
cffc7613f3
commit
e4b08ff805
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue