Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When you click a file in Source Control, it should open untracked files and show diffs for changed files #51017

Open
vscodenpa opened this issue May 13, 2022 · 12 comments

Comments

@vscodenpa
Copy link

In the Source Control side panel, when you select a file, it automatically brings up a diff. For changed files, this is a very sensible default. For untracked files, this makes no sense because it compares against a blank file. You can click the Open File icon and it'll open the file instead, and you can make this the default by setting git.openDiffOnClick to false. But this just reverses the direction of the problem.

The most sensible default click behavior is this:

  • Changed Files -> Open Diff
  • Untracked Files -> Open File
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
@vscodenpa and others