Skip to content

Commit

Permalink
feat: release 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
RedJue committed Oct 13, 2023
1 parent 4afa4c8 commit 7e72327
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# CHANGELOG


## [1.2.1]
- 🐞Fix: [after restarting the extension host, the plugin cannot be activated normally](https://github.com/RedJue/git-commit-plugin/issues/93)
THX @[MaLuns](https://github.com/MaLuns)
## [1.2.0]
- ✨ Feat: [zh-tw&zh-hk support](https://github.com/RedJue/git-commit-plugin/pull/90)
THX @[Tiddler-7](https://github.com/Tiddler-7)
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": "git-commit-plugin",
"displayName": "git-commit-plugin",
"description": "Automatically generate git commit",
"version": "1.2.0",
"version": "1.2.1",
"engines": {
"vscode": "^1.42.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/config/commit-detail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export interface CommitDetailType extends QuickPickItem {
}
//最大的 subject 限制字数 Max subject characters
export const MaxSubjectCharacters =
workspace.getConfiguration('GitCommitPlugin').get<boolean>('MaxSubjectCharacters') || 20;
workspace.getConfiguration('GitCommitPlugin').get<number>('MaxSubjectCharacters') || 20;

export function GetCommitDetailType() {
const CommitDetailType: Array<CommitDetailType> = [
Expand Down
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export async function activate(context: vscode.ExtensionContext) {
message_config[_key] = _value;
_detailType && (_detailType.isEdit = true);
if (_key === 'subject') {
const input_value_length = value ? value?.length : 0;
const input_value_length = value ? value.length : 0;
if (input_value_length > MaxSubjectCharacters) {
vscode.window.showErrorMessage(
`The commit overview is no more than ${MaxSubjectCharacters} characters but the current input is ${input_value_length} characters`,
Expand Down

0 comments on commit 7e72327

Please sign in to comment.