Git - polish the diagnostics information commit hook (#240590)

* Rework the settings and implementation

* Add settings descriptions

* Update default enablement
This commit is contained in:
Ladislau Szomoru
2025-02-13 00:33:16 +01:00
committed by GitHub
parent 3daef56171
commit bd9c5acfd8
3 changed files with 58 additions and 34 deletions

View File

@@ -286,12 +286,9 @@
"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.Severity": "Controls the minimum diagnostics severity for which Git should check before committing.",
"config.diagnosticsCommitHook.Severity.error": "Errors only",
"config.diagnosticsCommitHook.Severity.warning": "Errors and warnings",
"config.diagnosticsCommitHook.Severity.information": "Errors, warnings, and information",
"config.diagnosticsCommitHook.Severity.hint": "Errors, warnings, information, and hints",
"config.diagnosticsCommitHook.Source": "Controls the list of diagnostics sources for which Git should check before committing.",
"config.diagnosticsCommitHook.Enabled": "Controls whether Git should check for unresolved diagnostic information before committing.",
"config.diagnosticsCommitHook.IgnoredSources": "List of diagnostic information sources that should be ignored. **Note:** Ignored diagnostic information sources take precedence over the diagnostic information sources listed in `#git.diagnosticsCommitHook.Sources#`.",
"config.diagnosticsCommitHook.Sources": "Controls the list of diagnostic information sources (**Item**) and the minimum diagnostic information severity (**Value**) to be considered before committing.",
"config.untrackedChangesSoftDelete": "Controls whether discarding untracked changes moves the file(s) to the Recycle Bin (Windows), Trash (macOS, Linux) instead of deleting them.",
"submenu.explorer": "Git",
"submenu.commit": "Commit",