An very tiny vscode extension that allows users to revert a selected file from main branch. It just does git restore --source=main "${filePath}".
Install from the VS Code Marketplace by searching for "restore-from-main" or use:
code --install-extension smallstack.restore-from-main
- Clone the repository
- Run
npm installto install dependencies - Run
npm run compileto build the extension - Open the folder in VS Code and press
F5to test in debug mode - Make your changes and submit a pull request
To publish a new version to the VS Code Marketplace:
- Update the version in
package.json - Run
npm run compileto build - Install
vsce:npm install -g @vscode/vsce - Login:
vsce login smallstack - Publish:
vsce publish