Skip to content

Git - "Git: Open Changes" and "Git: Open File" do not work for notebooks #176401

Closed

Description

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

  • VS Code Version: 1.76.0
  • OS Version: macOS 12.6

Steps to Reproduce:

  1. Set shortcuts to toggle between diff view and actual file (as shown here)
  2. Shortcuts work for normal files but don't work for notebooks. Buttons on top right corner of editor do work though.

Activity

  1. added
    bug
    git
    on Mar 15, 2023
  2. changed the title [-]Commands "Git: Open Changes" and "Git: Open File" do not work for notebooks[/-] [+]Git - "Git: Open Changes" and "Git: Open File" do not work for notebooks[/+] on Dec 12, 2024
  3. added
    help wanted
    on Dec 12, 2024
  4. geoffkopaczewskyj commented on Jan 5, 2025

    @geoffkopaczewskyj

    Similar issue on my end, i.e. the git.openChange command does not work specifically in the context of a Jupyter notebook via keyboard shortcut, e.g. below, despite the keyboard shortcuts troubleshooting log outputting "[info] [KeybindingService]: + Invoking command git.openChange".

    However, it does work via clicking the open changes icon on the editor menu and via right clicking on the file from the source control tab on the activity bar for Jupyter notebooks, and it also works via the below keyboard shortcut for filetypes that are not notebooks.

    {
        "key": "alt+d",
        "command": "git.openChange",
        "when": "config.git.enabled && scmActiveResourceHasChanges && !git.missing && !isInDiffEditor && !isMergeEditor && resourceScheme == 'file' && gitOpenRepositoryCount != '0'"
    }
    
  5. added a commit that references this issue on Jul 20, 2026
    4a779cf
  6. added
    unreleased
    on Jul 20, 2026
  7. added
    insiders-released
    and removed
    unreleased
    on Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

buggithelp wantedinsiders-releasedverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions