Skip to content

Commit 96e9dc9

Browse files
committed
chore: 降级vscode引擎和类型定义至1.90.0版本
为了确保插件在更广泛的vscode版本上兼容,将vscode引擎和类型定义从1.99.0降级至1.90.0。同时更新了README.md中的Cron表达式说明,使其更清晰易读。
1 parent 44565a1 commit 96e9dc9

File tree

3 files changed

+32
-19
lines changed

3 files changed

+32
-19
lines changed

README.md

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,26 +37,39 @@ Cron表达式通常由6或7个字段组成(部分系统支持可选的“年
3737
```
3838
### cron在线工具
3939
可以使用工具生成cron表达式,下面是几个常用的在线工具:
40+
4041
[在线Cron表达式生成器-pppet.net](https://www.pppet.net/)
42+
4143
[在线Cron表达式生成器-cron.ciding.cc](https://cron.ciding.cc/)
4244

4345
### 常用特殊字符与规则
4446
Cron表达式通过特殊字符实现灵活的时间规则定义:
4547

46-
`*`:匹配任意值(如分字段设为*表示每分钟触发)
47-
`,`:枚举多个值(如1,15在小时字段表示1点和15点)
48-
`-`:定义范围(如10-20在日字段表示10号到20号)
49-
`/`:指定间隔(如0`/15在分字段表示每15分钟一次)
50-
`?`:仅用于‌日‌或‌星期‌字段,表示“不指定”(用于避免冲突)
51-
`L`:表示“最后”(如L在星期字段表示最后一天)
52-
`W`:表示“最近工作日”(如15W在日字段表示离15号最近的工作日)。
48+
| 特殊字符 | 功能描述 | 使用示例 |
49+
|---------|---------|---------|
50+
| `*` | 匹配任意值 | 分字段设为`*`表示每分钟触发 |
51+
| `,` | 枚举多个值 | `1,15`在小时字段表示1点和15点 |
52+
| `-` | 定义范围 | `10-20`在日字段表示10号到20号 |
53+
| `/` | 指定间隔 | `0/15`在分字段表示每15分钟一次 |
54+
| `?` | 仅用于日或星期字段,表示"不指定" | 用于避免日和周字段冲突 |
55+
| `L` | 表示"最后" | `L`在星期字段表示最后一天 |
56+
| `W` | 表示"最近工作日" | `15W`在日字段表示离15号最近的工作日 |
5357

5458
### 常见示例
55-
`* * * * *` :每1分钟整点执行
56-
`0 0 * * * ?`:每天每小时整点执行
57-
`0 0/5 * * * ?`:每5分钟执行一次
58-
`25 9 * * 1-5`:每个工作日的9点25分执行。
59-
`0 10 * * 5`:每个星期五的10点执行。
60-
`0 0 12 * * ?`:每天中午12点执行。
61-
`0 0 0 * * 0,6`:每周日和周六午夜执行。
62-
`0 0 0 1 * ?`:每个月1日午夜执行。
59+
| Cron表达式 | 执行说明 |
60+
|-----------|---------|
61+
| `* * * * *` | 每1分钟整点执行 |
62+
| `0 0 * * * ?` | 每天每小时整点执行 |
63+
| `0 0/5 * * * ?` | 每5分钟执行一次 |
64+
| `25 9 * * 1-5` | 每个工作日的9点25分执行 |
65+
| `0 10 * * 5` | 每个星期五的10点执行 |
66+
| `0 0 12 * * ?` | 每天中午12点执行 |
67+
| `0 0 0 * * 0,6` | 每周日和周六午夜执行 |
68+
| `0 0 0 1 * ?` | 每个月1日午夜执行 |
69+
70+
## 相关链接
71+
- [问题反馈](https://github.com/stack-stark/timehive/issues)
72+
73+
- [项目地址](https://github.com/stack-stark/timehive.git)
74+
75+
- [插件地址](https://marketplace.visualstudio.com/items?itemName=stack-stark-code.timehive)

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"version": "1.0.0",
66
"publisher": "stack-stark-code",
77
"engines": {
8-
"vscode": "^1.99.0"
8+
"vscode": "^1.90.0"
99
},
1010
"categories": [
1111
"Other"
@@ -100,7 +100,7 @@
100100
"@types/mocha": "^10.0.10",
101101
"@types/node": "20.x",
102102
"@types/node-cron": "^3.0.11",
103-
"@types/vscode": "^1.99.0",
103+
"@types/vscode": "^1.90.0",
104104
"@typescript-eslint/eslint-plugin": "^8.17.0",
105105
"@typescript-eslint/parser": "^8.17.0",
106106
"@vscode/test-cli": "^0.0.10",

0 commit comments

Comments
 (0)