diff --git a/extensions/git/package.json b/extensions/git/package.json index 6761f02ce5b..255bb02be3f 100644 --- a/extensions/git/package.json +++ b/extensions/git/package.json @@ -3298,13 +3298,13 @@ "markdownDescription": "%config.commitShortHashLength%", "scope": "resource" }, - "git.diagnosticsCommitHook.Enabled": { + "git.diagnosticsCommitHook.enabled": { "type": "boolean", "default": false, - "markdownDescription": "%config.diagnosticsCommitHook.Enabled%", + "markdownDescription": "%config.diagnosticsCommitHook.enabled%", "scope": "resource" }, - "git.diagnosticsCommitHook.Sources": { + "git.diagnosticsCommitHook.sources": { "type": "object", "additionalProperties": { "type": "string", @@ -3319,7 +3319,7 @@ "default": { "*": "error" }, - "markdownDescription": "%config.diagnosticsCommitHook.Sources%", + "markdownDescription": "%config.diagnosticsCommitHook.sources%", "scope": "resource" }, "git.discardUntrackedChangesToTrash": { diff --git a/extensions/git/package.nls.json b/extensions/git/package.nls.json index 52ba3819817..dfc2ce99ca8 100644 --- a/extensions/git/package.nls.json +++ b/extensions/git/package.nls.json @@ -286,8 +286,8 @@ "config.blameStatusBarItem.enabled": "Controls whether to show blame information in the status bar.", "config.blameStatusBarItem.template": "Template for the blame information status bar item. Supported variables:\n\n* `hash`: Commit hash\n\n* `hashShort`: First N characters of the commit hash according to `#git.commitShortHashLength#`\n\n* `subject`: First line of the commit message\n\n* `authorName`: Author name\n\n* `authorEmail`: Author email\n\n* `authorDate`: Author date\n\n* `authorDateAgo`: Time difference between now and the author date\n\n", "config.commitShortHashLength": "Controls the length of the commit short hash.", - "config.diagnosticsCommitHook.Enabled": "Controls whether to check for unresolved diagnostics before committing.", - "config.diagnosticsCommitHook.Sources": "Controls the list of sources (**Item**) and the minimum severity (**Value**) to be considered before committing. **Note:** To ignore diagnostics from a particular source, add the source to the list and set the minimum severity to `none`.", + "config.diagnosticsCommitHook.enabled": "Controls whether to check for unresolved diagnostics before committing.", + "config.diagnosticsCommitHook.sources": "Controls the list of sources (**Item**) and the minimum severity (**Value**) to be considered before committing. **Note:** To ignore diagnostics from a particular source, add the source to the list and set the minimum severity to `none`.", "config.discardUntrackedChangesToTrash": "Controls whether discarding untracked changes moves the file(s) to the Recycle Bin (Windows), Trash (macOS, Linux) instead of deleting them permanently. **Note:** This setting has no effect when connected to a remote or when running in Linux as a snap package.", "config.showReferenceDetails": "Controls whether to show the details of the last commit for Git refs in the checkout, branch, and tag pickers.", "submenu.explorer": "Git", diff --git a/extensions/git/src/commands.ts b/extensions/git/src/commands.ts index 146a7bc826f..e8e76bddfaa 100644 --- a/extensions/git/src/commands.ts +++ b/extensions/git/src/commands.ts @@ -632,8 +632,8 @@ class CommandErrorOutputTextDocumentContentProvider implements TextDocumentConte async function evaluateDiagnosticsCommitHook(repository: Repository, options: CommitOptions): Promise { const config = workspace.getConfiguration('git', Uri.file(repository.root)); - const enabled = config.get('diagnosticsCommitHook.Enabled', false) === true; - const sourceSeverity = config.get>('diagnosticsCommitHook.Sources', { '*': 'error' }); + const enabled = config.get('diagnosticsCommitHook.enabled', false) === true; + const sourceSeverity = config.get>('diagnosticsCommitHook.sources', { '*': 'error' }); if (!enabled) { return true;