Skip to content

Add WriteCommit VS Code extension#5

Open
PatrickRuddiman wants to merge 3 commits intomainfrom
codex/create-vscode-extension-for-commit-message-generation
Open

Add WriteCommit VS Code extension#5
PatrickRuddiman wants to merge 3 commits intomainfrom
codex/create-vscode-extension-for-commit-message-generation

Conversation

@PatrickRuddiman
Copy link
Owner

Summary

  • create a VS Code extension that integrates the WriteCommit CLI
  • add configuration for the OpenAI API key and executable path
  • provide a Source Control panel action to generate a commit message
  • automatically install WriteCommit if missing and parse the dry-run output
  • show a spinner while the CLI runs
  • document the extension in the main README
  • add workflow for publishing the extension to the Marketplace

Testing

  • npm install
  • npm run build

https://chatgpt.com/codex/tasks/task_e_68603c9820a4832aadd0b1bf236ce662

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a VS Code extension that integrates the WriteCommit CLI to generate commit messages directly from the Source Control panel. Key changes include:

  • Adding the VS Code extension project with TypeScript configuration.
  • Implementing CLI installation, execution, and commit message generation.
  • Providing configuration settings and a GitHub Actions workflow for publishing the extension.

Reviewed Changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
vscode-extension/tsconfig.json New TypeScript configuration for the extension project.
vscode-extension/src/extension.ts Implementation of CLI integration, command registration, and progress UI.
vscode-extension/package.json Defines extension manifest including commands and configuration settings.
vscode-extension/README.md Documentation for extension features and usage.
README.md General project documentation updated with extension usage instructions.
.github/workflows/publish-extension.yml Workflow for publishing the extension to the VS Code Marketplace.
Comments suppressed due to low confidence (1)

vscode-extension/package.json:45

  • The configuration property keys in package.json are prefixed with 'writecommit.' even though they are defined in the 'writecommit' configuration section. This causes a mismatch with the keys accessed in the extension code (e.g., 'openAIApiKey'). Consider renaming them to 'openAIApiKey' and 'executablePath' to align with the code.
        "writecommit.openAIApiKey": {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments