Copilot Diff Tool is a Visual Studio Code extension designed to assist with analyzing code changes. It provides tools to review file differences and integrates seamlessly with Git.
- Analyze file differences with HEAD.
- Review uncommitted changes.
- Integration with Git SCM.
- Clone the repository:
git clone https://github.com/digimangos-work-demo/vscode-diff-chat.git
- Navigate to the project directory:
cd vscode-diff-chat
- Install dependencies:
npm install
- Open the project in Visual Studio Code.
- Run the extension:
- Press
F5
to open a new VS Code window with the extension loaded.
- Press
- Use the command palette (
Ctrl+Shift+P
orCmd+Shift+P
on macOS) and typeAnalyse diff (HEAD)
to analyze file differences with HEAD.
- Run
npm install
in terminal to install dependencies - Run the
Run Extension
target in the Debug View. This will:- Start a task
npm: watch
to compile the code - Run the extension in a new VS Code window
- You will see the @diff chat participant show in the GitHub Copilot Chat view
- Start a task
Documentation on interacting with the Chat API can be found here:
To build the project, run:
npm run compile
To watch for changes and recompile automatically, run:
npm run watch
To lint the project, run:
npm run lint
This project is licensed under the MIT License. See the LICENSE file for details.