File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4747 "when" : " scmProvider == git"
4848 }
4949 ]
50+ },
51+ "configuration" : {
52+ "title" : " Git Diff and Merge Tool" ,
53+ "properties" : {
54+ "git-diff-and-merge-tool.showNotificationOnOpen" : {
55+ "type" : " boolean" ,
56+ "default" : " true" ,
57+ "description" : " Show a notification when opening the diff or merge tool."
58+ }
59+ }
5060 }
5161 },
5262 "dependencies" : {
Original file line number Diff line number Diff line change @@ -33,7 +33,10 @@ export function activate(context: vscode.ExtensionContext) {
3333 return ;
3434 }
3535
36- vscode . window . showInformationMessage ( infoMessageFunc ( targetFile ) ) ;
36+ const notifyOnOpen = vscode . workspace . getConfiguration ( 'git-diff-and-merge-tool' ) . get ( 'showNotificationOnOpen' ) ;
37+ if ( notifyOnOpen ) {
38+ vscode . window . showInformationMessage ( infoMessageFunc ( targetFile ) ) ;
39+ }
3740
3841 simpleGit ( projectPath ) . raw (
3942 gitArgumentsFunc ( targetFile ) ,
You can’t perform that action at this time.
0 commit comments