Comments (6)
Thanks for the suggestion. I will have a look into building this feature.
from git-mob-vs-code.
I've had a look into this and so far the best thing I've come up with is to use the post-commit
git hook.
#!/usr/bin/env node
let exec = require('child_process').exec;
exec("git solo");
However, this does not play well with updating the git-mob
UI. You can give it a try.
I welcome any suggestions, I do think it would be neat to have this feature.
from git-mob-vs-code.
Thanks for looking into this.
I have not much experience with vs code extensions, but what about listening to the onDidChange
events of the git extension?
https://github.com/microsoft/vscode/blob/master/extensions/git/src/api/git.d.ts#L99-L116.
There is also onDidRunOperation
which is invoked directly after a commit, but it seems its not exposed in the API. https://github.com/microsoft/vscode/blob/master/extensions/git/src/repository.ts#L572
from git-mob-vs-code.
Thanks for looking.
I've tried onDidChange
for repositories and that is triggered for a range of actions, like staging and committing. However, it's impossible to tell which caused it to trigger as there is no operation data passed it.
For onDidRunOperation
is not available from the git ext API, but that would have been good option.
from git-mob-vs-code.
I've created a stackoverflow question https://stackoverflow.com/questions/63306762/update-extension-ui-after-a-git-commit-in-vs-code
from git-mob-vs-code.
@tobiasdiez i've released version 1.7 to address this. Give it a try when you can and let me know how it works for you. Thanks.
from git-mob-vs-code.
Related Issues (20)
- GitHub fetch anonymous email if main one is hidden
- Include git-mob in open-vsx extension repository HOT 2
- Add user from GitHub - handle no name HOT 3
- Unexpected token } in JSON at position 102 HOT 1
- error message: `EACCES: permission denied, open '../.gitmessage'` HOT 1
- Add Search to Unselected list. HOT 4
- Watch for commit failed ENOENT: no such file or directory \.git\COMMIT_EDITMSG
- UI Proposal: Replace Unselected and More with Favorites HOT 10
- Error message if Github PAT not entered or if no results HOT 4
- UI: Change in List dialog HOT 4
- On selecting co-author: Failed to update input: Cannot read property 'inputBox' of undefined HOT 4
- Handle support for prepare-commit-msg
- Toggle authors in alphabetical order ascending or descending
- Add co-author from "more authors" directly into "selected"
- Include co-author only contributors into the "more authors" list
- Append sign-off metadata
- Copy co-author metadata to clipboard
- Cannot read property 'inputBox' of undefined for workspaces HOT 3
- GitMob handleResponse: "git config --get commit.template" HOT 1
- Append co-authors via command palette
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-mob-vs-code.