Skip to content

Commit

Permalink
fix: 获取单个规则
Browse files Browse the repository at this point in the history
  • Loading branch information
aooiuu committed Mar 30, 2024
1 parent f226f50 commit e65e1c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "any-reader",
"description": "any-reader for vscode",
"icon": "resources/icon.png",
"version": "0.5.1",
"version": "0.5.2",
"preview": true,
"publisher": "aooiu",
"qna": "https://github.com/aooiuu/any-reader/issues",
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode/src/utils/ruleFileManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ export async function update(rule: Rule) {
}

export async function fundById(id: string): Promise<Rule> {
const list: Rule[] = await fs.readJson(BOOK_SOURCE_PATH);
const list: Rule[] = await readRuleList();
return list.find((e) => e.id === id) as Rule;
}

0 comments on commit e65e1c2

Please sign in to comment.