From e65e1c2cd24bd23db44e2c94868c2a372742206c Mon Sep 17 00:00:00 2001 From: aooiuu Date: Sat, 30 Mar 2024 10:20:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=8E=B7=E5=8F=96=E5=8D=95=E4=B8=AA?= =?UTF-8?q?=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/vscode/package.json | 2 +- packages/vscode/src/utils/ruleFileManager.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vscode/package.json b/packages/vscode/package.json index 091c34b1..bb35cd80 100644 --- a/packages/vscode/package.json +++ b/packages/vscode/package.json @@ -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", diff --git a/packages/vscode/src/utils/ruleFileManager.ts b/packages/vscode/src/utils/ruleFileManager.ts index c8c72a15..0c27b8a5 100644 --- a/packages/vscode/src/utils/ruleFileManager.ts +++ b/packages/vscode/src/utils/ruleFileManager.ts @@ -61,6 +61,6 @@ export async function update(rule: Rule) { } export async function fundById(id: string): Promise { - const list: Rule[] = await fs.readJson(BOOK_SOURCE_PATH); + const list: Rule[] = await readRuleList(); return list.find((e) => e.id === id) as Rule; }