Skip to content

Commit

Permalink
fix: 初始化 json 配置
Browse files Browse the repository at this point in the history
  • Loading branch information
aooiuu committed Mar 30, 2024
1 parent 3831e7a commit f226f50
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.0",
"version": "0.5.1",
"preview": true,
"publisher": "aooiu",
"qna": "https://github.com/aooiuu/any-reader/issues",
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode/src/utils/RecordFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class RecordFile {
// 初始化
async init() {
await fs.ensureFile(this.filePath);
this.history = await fs.readJson(this.filePath);
this.history = await fs.readJson(this.filePath).catch(() => []);
}

// 获取所有记录
Expand Down

0 comments on commit f226f50

Please sign in to comment.