Skip to content

About

Fetch your next commit message from WhatTheCommit.com

Resources

Stars

4 stars

Watchers

0 watching

Forks

Repository files navigation

vscode-WhatTheCommit

Build Visual Studio Marketplace Version Visual Studio Marketplace Installs

Fetch your next commit message from WhatTheCommit.com directly into the VS Code Git commit input box. Works in both VS Code Desktop and VS Code for the Web (vscode.dev and github.dev).

All credits for the commit messages go to ngerakines/commitment.

WhatTheCommit extension demo

Download

Install from the Visual Studio Marketplace.

Usage

  1. Open a folder containing a Git repository.
  2. Click the WhatTheCommit icon in the Source Control title bar, or run WhatTheCommit: Get Commit Message from the Command Palette.
  3. The fetched commit message fills the Git commit input box.

Settings

Setting Type Default Description
wtc.addPermalink boolean false Append the WhatTheCommit permalink below the commit message.

Requirements

  • VS Code 1.96.0 or newer
  • Built-in VS Code Git extension (vscode.git) enabled

Development

npm install
npm run compile

Available scripts:

  • npm run check-types runs TypeScript type checking (tsc --noEmit).
  • npm run lint runs ESLint.
  • npm test runs the ESLint rule tests.
  • npm run compile type checks, lints, and builds desktop and web bundles with esbuild.
  • npm run watch rebuilds desktop and web bundles on file changes.
  • npm run package builds a .vsix package with vsce.
  • npm run run-in-browser launches the extension in VS Code for the Web using Chromium.

The ESLint check requires engines.vscode and devDependencies["@types/vscode"] in package.json to match. Install the VS Code ESLint extension to see this error while editing the file. Update both values together when raising the minimum VS Code version.

About

Fetch your next commit message from WhatTheCommit.com

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages