Skip to content

Commit 7e72327

Browse files
committed
feat: release 1.2.1
1 parent 4afa4c8 commit 7e72327

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# CHANGELOG
22

33

4+
## [1.2.1]
5+
- 🐞Fix: [after restarting the extension host, the plugin cannot be activated normally](https://github.com/RedJue/git-commit-plugin/issues/93)
6+
THX @[MaLuns](https://github.com/MaLuns)
47
## [1.2.0]
58
- ✨ Feat: [zh-tw&zh-hk support](https://github.com/RedJue/git-commit-plugin/pull/90)
69
THX @[Tiddler-7](https://github.com/Tiddler-7)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "git-commit-plugin",
33
"displayName": "git-commit-plugin",
44
"description": "Automatically generate git commit",
5-
"version": "1.2.0",
5+
"version": "1.2.1",
66
"engines": {
77
"vscode": "^1.42.0"
88
},

src/config/commit-detail.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export interface CommitDetailType extends QuickPickItem {
1010
}
1111
//最大的 subject 限制字数 Max subject characters
1212
export const MaxSubjectCharacters =
13-
workspace.getConfiguration('GitCommitPlugin').get<boolean>('MaxSubjectCharacters') || 20;
13+
workspace.getConfiguration('GitCommitPlugin').get<number>('MaxSubjectCharacters') || 20;
1414

1515
export function GetCommitDetailType() {
1616
const CommitDetailType: Array<CommitDetailType> = [

src/extension.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export async function activate(context: vscode.ExtensionContext) {
111111
message_config[_key] = _value;
112112
_detailType && (_detailType.isEdit = true);
113113
if (_key === 'subject') {
114-
const input_value_length = value ? value?.length : 0;
114+
const input_value_length = value ? value.length : 0;
115115
if (input_value_length > MaxSubjectCharacters) {
116116
vscode.window.showErrorMessage(
117117
`The commit overview is no more than ${MaxSubjectCharacters} characters but the current input is ${input_value_length} characters`,

0 commit comments

Comments
 (0)