Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## version 2.11.14

- 修正状态栏计时器文字显示

## version 2.11.13

- 缩短项目名
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-leetcode-problem-rating",
"displayName": "LeetCode",
"description": "LeetCode 官方插件增强, 代码开源, 增加 LeetCode 题目难度分, 给个star吧, 球球了",
"version": "2.11.13",
"version": "2.11.14",
"author": "ccagml",
"publisher": "ccagml",
"license": "MIT",
Expand Down
6 changes: 3 additions & 3 deletions src/service/StatusBarTimeService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,17 +112,17 @@ class StatusBarTimeService implements Disposable {
if (this.questionNode?.id) {
pre = `${this.questionNode?.id}题`;
}
this.showBar.text = `${pre}计时:${diffstr}`;
this.showBar.text = `${pre}计时: ${diffstr}`;
} else if (this.saveTime > 0) {
let diff = this.saveTime;
let diffstr = this.getDiffStr(diff);
let pre = "做题";
if (this.questionNode?.id) {
pre = `${this.questionNode?.id}题`;
}
this.showBar.text = `${pre}题计时:${diffstr}`;
this.showBar.text = `${pre}计时: ${diffstr}`;
} else {
this.showBar.text = `做题计时:${this.getDiffStr(0)}`;
this.showBar.text = `做题计时: ${this.getDiffStr(0)}`;
}
}

Expand Down