Microsoft/vscode

Git stash created by lint-staged not visible in VS Code's "View Stash" panel

Open

#257960 opened on Jul 26, 2025

View on GitHub
 (2 comments) (0 reactions) (1 assignee)TypeScript (74,848 stars) (10,221 forks)batch import
buggithelp wanted

Description

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

  • VS Code Version: 1.102.2
  • OS Version: 12.3.1

Steps to Reproduce:

  1. 1.Install and configure lint-staged (version 16.1.2)
  2. Perform a git commit that triggers lint-staged
  3. lint-staged will automatically stash changes and create a stash entry with the message lint-staged automatic backup (xxxxxxx)
  4. Run git stash list in terminal to confirm the stash is created and visible
  5. Open VS Code → Source Control → View Stashes
  6. The stash created by lint-staged is not visible in the View Stash list inside VS Code

Expected Behavior The stash created by lint-staged should appear in the View Stash panel in the Source Control view.

Actual Behavior Although the stash is confirmed to exist via git stash list, it does not show up in the Source Control UI under View Stash in VS Code.

Contributor guide