Giter Club home page Giter Club logo

Comments (6)

rkotze avatar rkotze commented on May 27, 2024 1

Thanks for the suggestion. I will have a look into building this feature.

from git-mob-vs-code.

rkotze avatar rkotze commented on May 27, 2024

👋 @tobiasdiez

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.

tobiasdiez avatar tobiasdiez commented on May 27, 2024

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.

rkotze avatar rkotze commented on May 27, 2024

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.

rkotze avatar rkotze commented on May 27, 2024

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.

rkotze avatar rkotze commented on May 27, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.