Skip to content

Commit

Permalink
chore: v4.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
OBKoro1 committed Jan 29, 2023
1 parent e34bad3 commit 8dad9d0
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 4 deletions.
46 changes: 44 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* Author : OBKoro1
* Date : 2021-03-27 17:30:30
* Last Author : OBKoro1 1677593011@qq.com
* LastEditTime : 2022-12-14 23:15:59
* FilePath : /CHANGELOG.md
* LastEditTime : 2023-01-29 16:04:10
* FilePath : /koro1FileHeader/CHANGELOG.md
* Description :
-->

Expand All @@ -17,6 +17,48 @@

[配置](https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE) - 所有配置的详细描述的文档,用于查看详细介绍。

### [V4.9.3]

* feat: specialOptions支持单独根据语言或者语言后缀进行配置,参考自定义语言的后缀形式 [#539](https://github.com/OBKoro1/koro1FileHeader/issues/539), 文档:[特殊字段允许自定义](https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE#6-%E7%89%B9%E6%AE%8A%E5%AD%97%E6%AE%B5%E5%85%81%E8%AE%B8%E8%87%AA%E5%AE%9A%E4%B9%89)

如下面的js、md,会针对后缀文件进行单独的特殊字段设置。

```js
"fileheader.configObj": {
"specialOptions":{
"Author": "creater",
"Date": "since",
"LastEditTime": "lastTime",
"LastEditors": "LastAuthor",
"Description": "message", // 头部注释大写的描述Description
"description": "function message", // 函数注释小写的描述:description
"FilePath": "文件相对于项目的路径"
"param": "param2", // 函数注释parm参数别名
// 文件后缀、或者语言后缀,可针对单个文件后缀进行配置:language的自定义语言配置
"js": {
"Description": "message2", // 合并specialOptions第一层级的配置,覆盖Description的配置
"return": "return2", // 单独为js文件添加return 特殊字段配置
},
"md": {
"Date": "date",
"Description": "tag"
}
}
}
```


* feat: 函数注释特殊字段为description,头部注释的特殊字段为Description,用于区分 [#512](https://github.com/OBKoro1/koro1FileHeader/issues/512)

文档:[特殊字段允许自定义](https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE#6-%E7%89%B9%E6%AE%8A%E5%AD%97%E6%AE%B5%E5%85%81%E8%AE%B8%E8%87%AA%E5%AE%9A%E4%B9%89)[移动光标到Description :所在行](https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE#%E7%A7%BB%E5%8A%A8%E5%85%89%E6%A0%87%E5%88%B0description-%E6%89%80%E5%9C%A8%E8%A1%8C)



* fix: now_year改为全局匹配 [#522](https://github.com/OBKoro1/koro1FileHeader/issues/522)
* fix: now_year、用户名和邮箱不再绑定 [#509](https://github.com/OBKoro1/koro1FileHeader/issues/509)
* fix: param等宽错误 [#495](https://github.com/OBKoro1/koro1FileHeader/issues/495)
* fix: 修复vscode默认快捷键和插件简介描述 [#498](https://github.com/OBKoro1/koro1FileHeader/issues/498)

### [V4.9.2]

* fix: VSCode 1.74.0 兼容,解决函数注释无法使用的问题
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

1. VSCode插件: 用于一键生成文件头部注释并自动更新最后编辑人和编辑时间、函数注释自动生成和参数提取。
2. 插件可以帮助用户养成良好的编码习惯,规范整个团队风格。
3. 从2018年5月维护至今, 关闭issue 300+ ,拥有250K+的用户,VSCode图表统计日安装用户100多-400多人,
3. 从2018年5月维护至今, 关闭issue 500+ ,拥有39.7w+的用户,VSCode图表统计日均安装200-500
4. 经过多版迭代后,插件支持所有主流语言,灵活方便,文档齐全,食用简单!
5. 觉得插件不错的话,就给个[Star](https://github.com/OBKoro1/koro1FileHeader)⭐️吧~

Expand Down
Binary file not shown.
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": "korofileheader",
"displayName": "koroFileHeader",
"description": "用于生成文件头部注释和函数注释的插件,支持所有主流语言,功能强大,灵活方便,文档齐全,食用简单!",
"version": "4.9.2",
"version": "4.9.3",
"publisher": "OBKoro1",
"scripts": {
"build": "vsce package",
Expand Down

0 comments on commit 8dad9d0

Please sign in to comment.