File tree Expand file tree Collapse file tree 4 files changed +6
-3
lines changed
Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 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 )
69THX @[ Tiddler-7] ( https://github.com/Tiddler-7 )
Original file line number Diff line number Diff line change 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 },
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export interface CommitDetailType extends QuickPickItem {
1010}
1111//最大的 subject 限制字数 Max subject characters
1212export const MaxSubjectCharacters =
13- workspace . getConfiguration ( 'GitCommitPlugin' ) . get < boolean > ( 'MaxSubjectCharacters' ) || 20 ;
13+ workspace . getConfiguration ( 'GitCommitPlugin' ) . get < number > ( 'MaxSubjectCharacters' ) || 20 ;
1414
1515export function GetCommitDetailType ( ) {
1616 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) {
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` ,
You can’t perform that action at this time.
0 commit comments