Microsoft/vscode

Git: deletion marker in the gutter disappears when folding adjacent regions

Open

#246.388 geöffnet am 12. Apr. 2025

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (1 zugewiesene Person)TypeScript (10.221 Forks)batch import
bugeditor-foldinghelp wanted

Repository-Metriken

Stars
 (74.848 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 11h 43m) (1.000 gemergte PRs in 30 T)

Beschreibung

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

  • VS Code Version: 1.99.2 (user setup) 4949701c880d4bdb949e3c0e6b400288da7f474b
  • OS Version: Windows_NT x64 10.0.26100

Steps to Reproduce:

  1. create a file test.html with the contents below in a Git repository
  2. stage the file
  3. delete the between line
  4. fold region 1
<!-- #region 1 -->
1
<!-- #endregion -->
between
<!-- #region 2 -->
2
<!-- #endregion -->

Expected: regardless of whether region 1 and/or 2 are folded, the red marker in the gutter is always visible, as the deleted line is part of neither region Actual: when region 1 is folded, the red marker is invisible

Contributor Guide