vscode-project-manager icon indicating copy to clipboard operation
vscode-project-manager copied to clipboard

Git changes on projects at a glance

Open develemit opened this issue 5 years ago • 8 comments

Hello! I was curious on how intense it would be to add an enhancement for this add-on to include information either about what git branch the projects are currently on and/or the number of additions / removals on each projects respective git branch.

I can look into this as well when I get a spare moment to offer a PR to the project if this would be something anybody else would be interested in having. I just wasn't sure how much effort would be involved with something like this.

Thanks for this add-on in either case! Very helpful not to get overloaded with code windows 😃

develemit avatar May 19 '20 23:05 develemit

Hi @Drienn ,

First of all, thank you for your kind words. I’m glad to know the extension is being useful :+1:

I’m not sure I understand when you say “include information about branch and/or additions/removals”? Do you mean the project to be saved for a branch, or simply provide information, in VS Code, about the active branch and additions/removals from the remote?

Could you please provide more details about it?

Thank you

alefragnani avatar May 21 '20 18:05 alefragnani

Hi @alefragnani

Thanks for the quick reply!

And I did mean just more simply having the branch name that you are currently on, maybe to the right of each project along with if there are any pending changes that you haven't committed

I'm no designer, but something like this would be super helpful for someone like me who is in and out of multiple repos a day working from a component based architecture.

image

This way I can tell without even opening the projects as to which I have pending changes and which branches I have been working from :-D.

What do you think? Is I'm not super sure what's all involved with this, but hopefully it's within reach of what you already have done, since you are already connecting projects based on git repos?

Thanks!

develemit avatar May 21 '20 22:05 develemit

I get it! Show this info for each project, not only the current (which VS Code already provides).

Well, I think it’s doable. I just wonder about the time it would take to detect/calculate the info (asynchronous communication to remote repo) depending on the number repos you have.

But I’m sure two things wouldn’t be possible today (lack of API), at least based on your design, which is pretty good, btw :+1:

  • Right aligned info
  • Colored info

Thank you for your suggestion

alefragnani avatar May 21 '20 23:05 alefragnani

For sure! It doesn't have to be aligned or even colored up just yet, I think just having the info display somewhere along with each project would be a big win for both people who work in a many repo'd organization and scatterbrains of which I fall into both categories 😃.

Thanks for your help/taking my suggestion!

develemit avatar May 22 '20 00:05 develemit

First of all, thank you for this awesome extension, helps me to manage my projects a lot!!

I would like to vote up 👍🏽 on this feature request, was my first attempt to search for an option to view the branch name like @develemit mentioned above.

I am also working on multiple repos at the same time and in addition to the name also getting the name of the branch would be super helpful.

I think it would be enough for many user to get the name of the branch for the first release of this feature and maybe for the next one you could provide some more advanced option like, using a variable pattern style option to choose the user which infomation he would like to provide in addition to the name of the project

e.g: "{project-name} ({branch-name})

Just an idea, but thank you a gain for this great extension

Maritn-Hammerschmid avatar Apr 28 '22 06:04 Maritn-Hammerschmid

Hi @Maritn-Hammerschmid ,

Thank you for your kind words. I’m glad to know the extension is being useful!

I’m pretty sure it will be a multi-release enhancement, because there are a lot of useful information that could be added, but I wonder if a variable pattern style option is the best/easiest approach.

Let’s see how the development goes when and what VS Code API provides as shortcuts.

Hope this helps

alefragnani avatar Apr 30 '22 23:04 alefragnani

Sure, I just want to address that you could do a first simple approach (show branch name) and release this feature faster, which will help others. The next update could be a more advanced version, which could let the user choose which infos he would like to add from the version control system to the project items.

Thank you so much.

Maritn-Hammerschmid avatar May 01 '22 07:05 Maritn-Hammerschmid