Skip to content

Commit 85ddd19

Browse files
committed
Added option to disable notification on opening the diff tool.
1 parent 30ce215 commit 85ddd19

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,16 @@
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": {

src/extension.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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),

0 commit comments

Comments
 (0)