A git commit message highlighter being nicer than the built-in one.
Highlighting inspiration from https://cbea.ms/git-commit.
- Inform about
git commit -vif it isn't being used - Proper
git commit -vdiff highlighting even when runninggitin not-English. - Highlight file names and what's happening to them
- Report > 72 characters subject lines as errors
- Report > 50 characters subject lines as warnings
- Report not-capitalized subject lines as errors (with Quick Fix)
- Report errors for trailing punctuation
- Report errors for non-blank second lines
- Comes with tests using https://github.com/PanAeon/vscode-tmgrammar-test
- Comes with unit tests for the diagnostics
- Add Quick Fixes for some of our diagnostics
- Update the screenshot
- Make an icon
- Highlight current branch name in the Git metadata
- Mark commit message subject line with:
- DONE:
meta.scope.subject.git-commit meta.scope.subject-after-50.git-commitfrom character 51 and onwardsmeta.scope.subject-after-72.git-commitfrom character 73 and onwards
- DONE:
- Make sure diagnostics are applied to newly opened files, not just on file edits
- Have unit tests that don't launch VSCode
- Move all tests under the same top subdirectory
npm testin CI- Validate code formatting in CI
To run the unit tests:
npm install && npm test
To install into VSCode:
npm run package- In VSCode:
- Click Extensions
- Click the ... menu in the top right corner
- Click Install from VSIX...
To check highlighting in VSCode: "Developer: Inspect Editor Tokens and Scopes"
To publish a new version:
npm run publish
