File tree 4 files changed +6
-3
lines changed
4 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
# CHANGELOG
2
2
3
3
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 )
4
7
## [ 1.2.0]
5
8
- ✨ Feat: [ zh-tw&zh-hk support] ( https://github.com/RedJue/git-commit-plugin/pull/90 )
6
9
THX @[ Tiddler-7] ( https://github.com/Tiddler-7 )
Original file line number Diff line number Diff line change 2
2
"name" : " git-commit-plugin" ,
3
3
"displayName" : " git-commit-plugin" ,
4
4
"description" : " Automatically generate git commit" ,
5
- "version" : " 1.2.0 " ,
5
+ "version" : " 1.2.1 " ,
6
6
"engines" : {
7
7
"vscode" : " ^1.42.0"
8
8
},
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export interface CommitDetailType extends QuickPickItem {
10
10
}
11
11
//最大的 subject 限制字数 Max subject characters
12
12
export const MaxSubjectCharacters =
13
- workspace . getConfiguration ( 'GitCommitPlugin' ) . get < boolean > ( 'MaxSubjectCharacters' ) || 20 ;
13
+ workspace . getConfiguration ( 'GitCommitPlugin' ) . get < number > ( 'MaxSubjectCharacters' ) || 20 ;
14
14
15
15
export function GetCommitDetailType ( ) {
16
16
const CommitDetailType : Array < CommitDetailType > = [
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ export async function activate(context: vscode.ExtensionContext) {
111
111
message_config [ _key ] = _value ;
112
112
_detailType && ( _detailType . isEdit = true ) ;
113
113
if ( _key === 'subject' ) {
114
- const input_value_length = value ? value ? .length : 0 ;
114
+ const input_value_length = value ? value . length : 0 ;
115
115
if ( input_value_length > MaxSubjectCharacters ) {
116
116
vscode . window . showErrorMessage (
117
117
`The commit overview is no more than ${ MaxSubjectCharacters } characters but the current input is ${ input_value_length } characters` ,
You can’t perform that action at this time.
0 commit comments