microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.27k stars 28.57k forks source link

Cannot hide incoming/outgoing in the Source Control view container #224576

Closed cathalmccosker closed 2 weeks ago

cathalmccosker commented 1 month ago

This issue is related to the previous issue here

https://github.com/microsoft/vscode/issues/192290

Prior to a recent update you could disable the incoming/outgoing via setting the following:

  "scm.showIncomingChanges": "never",
  "scm.showOutgoingChanges": "never",

However it no longer seems to work.

rtaque commented 1 month ago

Same problem here since 1.92.0 on debian. The settings scm.showIncomingChanges and scm.showOutgoingChanges have no effect anymore.

mgabeler-lee-6rs commented 1 month ago

Also they show changes that are neither incoming nor outgoing. In my case it seems that they are showing the last commit on the repo's default branch plus all commits on my current (dev) branch -- e.g. the commits listed by git log main..HEAD

mateosss commented 1 month ago

You can disable it with the setting showHistoryGraph.

This incoming/outgoing clutters the view quite a bit and there is no way to disable it from the UI. I see its usefulness and how some workflows might benefit from having it at hand as an alternative to the common git lola alias, but I am not sure what's the reasoning behind making it always-visible by default for everyone.

mbomb007 commented 1 month ago

Here's why it shouldn't be default. It looks terrible if you merge instead of rebase.

merges

darshanhurix commented 1 month ago

image This helped me get rid of it in VS Code

mbomb007 commented 1 month ago

I used "scm.showHistoryGraph": false in User Preferences JSON

yashnarkhedkar commented 1 month ago

Go to your vs code settings and search for show history graph and uncheck that option.

image This helped me get rid of it in VS Code

raceybe commented 1 month ago

Yeah, I used "scm.showHistoryGraph": false in User Preferences JSON

this... I spent 6 hours on Friday and all previous instructions point to .vscode/settings.json, but User or Workspace settings is now the required location. Making this not for others finally getting this link in a search result.

MikeRich88 commented 1 month ago

Why was this turned on??? (I hate auto updates)

This really freaked me out, I thought everything had screwed up and that I had 100s of uncommitted changes for some reason.

(I am a git noob more or less)

philBrown commented 2 weeks ago

@MikeRich88

I am a git noob more or less

Git veteran here and I thought the same

KuryKat commented 2 weeks ago

For anyone that didn't see in the prior comments...

How to hide incoming/outgoing in the Source Control view:

Add this to your settings.json file:

"scm.showHistoryGraph": false
Why are you commenting this again?
Some people have a tendency of skipping over comments that don't have code blocks or giant titles...
lszomoru commented 2 weeks ago

The history graph has been moved into its own view - Source Control Graph. The change is available in the latest VS Code Insiders release and will be included in the upcoming VS Code Stable release. Please give it a try and let us know what you think. Thank you!

brunoparga commented 1 week ago

@lszomoru I personally don't like this change, it's a bit obtrusive and distracts me from what I use the source control panel for: my changed files. I mean, the change itself is okay if people use it, I just turn it off and all is fine :)

anxpara commented 1 week ago

if this is regarding the feature i think, it's a really annoying feature. the height of the changes/staged changes view constantly shifts, and this feature puts a bunch of buttons right under said view, which means i constantly click buttons i didn't intend to click as i'm staging files.

i disabled it immediately. might be nice to have the option to remove the buttons, and keep the incoming/outgoing summary view