A Visual Studio Code extension for Git operations with a convenient sidebar interface.
- Sidebar view for Git operations
- Toggle visibility with the Git icon in the activity bar
- React-based UI for a modern experience
- TypeScript for type safety
- Styled with CSS using VS Code's theme variables
You can install this extension directly from the VS Code marketplace or by downloading the VSIX file and installing it manually.
- Download the VSIX file from the releases page
- Open VS Code
- Go to Extensions view (Ctrl+Shift+X)
- Click on the "..." menu in the top-right of the Extensions view
- Select "Install from VSIX..." and choose the downloaded file
- Click on the Git icon in the activity bar to open the Roo Git sidebar
- Use the interface to perform Git operations
- Toggle the sidebar by clicking the Git icon again
- Node.js
- npm or yarn
- Visual Studio Code
- Clone the repository
- Run
npm installto install dependencies - Run
npm run compileto build the extension and webview
- Press F5 to open a new window with your extension loaded
- The Roo Git icon should appear in the activity bar
- Click on the icon to open the sidebar view
- Extension code is in the
srcdirectory - React webview code is in the
webview/srcdirectory - After making changes to the extension code, restart the extension development host
- After making changes to the webview code, run
npm run compile:webviewand reload the webview
For more detailed development guidelines, see CONTRIBUTING.md.
The extension creates a webview in the sidebar and loads the bundled React application into it. The React application can communicate with the extension using the VS Code API.
The extension can send messages to the webview using the webview.postMessage() method.
The webview can send messages to the extension using the vscode.postMessage() method, which is acquired through the acquireVsCodeApi() function.
To build and package the extension:
npm run vscode:prepublish
vsce packageThis will compile both the extension and webview, and create a VSIX file that can be installed in VS Code.
This project is licensed under the MIT License - see the LICENSE file for details.