microsoft / vscode

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

Diff gutter not showing properly with multiple opened folders on separate directories #176880

Closed r4isen1920 closed 1 year ago

r4isen1920 commented 1 year ago

Does this issue occur when all extensions are disabled?: Yes

Steps to Reproduce:

  1. Open a folder that has been cloned from a repository (example: Github)
  2. And then open another folder that is of a separate GIT repository on the same window (File -> Add Folder to Workspace...)

You should end up with two repositories on a single opened window as such: source-control-tab

Expected:

File is modified and shows the markings, such as 'Modified' on the files and the diff changes renders on the gutter properly.

Observed:

File is modified and still shows the markings, such as 'Modified' on the files as normal. But the per-line gutter display change is omitted.

vscodenpa commented 1 year ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.76.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

r4isen1920 commented 1 year ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.76.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

I do believe I'm using the latest version. image

r4isen1920 commented 1 year ago

After some testing, I figured out that it still doesn't show the gutter displays regardless if the repository is of the same or not. Simply opening two different folders, of not having the common parent folder, seems to cause the issue.

r4isen1920 commented 1 year ago

Perhaps the issue is related to the recent change. However, that should not be the case as the gutter would still display under certain circumstances (such as opening a single folder, instead of multiple). Otherwise, it ought to not function at all.

changelog

This issue did not occur in the previous version. I may opt to downgrade. However, I still do want to benefit from the latest changes. Is there any viable quick fix for this? The gutter displays really did a number to me, and I find it very useful.

gjsjohnmurray commented 1 year ago

Probably #176749

r4isen1920 commented 1 year ago

Gotcha, will refer to that instead. Will close this one as it's considered duplicate.

Also, downgrading to 1.76.0 seems to have resolved the issue. I was wondering why it was working fine just yesterday and it suddenly stopped working today at some point. Thanks!

JenuelDev commented 1 year ago

I am also having this issue, changes don't show gutter, this makes me have a hard time trying to find changes in my file, I have to click the git tab just to check changes.