Commit 3954cc7
committed
scm: remember worktree visibility across restarts
When a repository is discovered after the initial loading phase has
ended (e.g. git worktrees detected by git.detectWorktrees), the SCM
view service was ignoring the persisted visibility state and making
the repository visible by default. This forced users to re-hide any
worktrees they had previously deselected on every restart.
This change keeps consulting the persisted state for repositories
added after loading finished: if the repository was explicitly
hidden in the previous session, it stays hidden when it is
re-discovered.
Fixes microsoft#2715541 parent 1da74cc commit 3954cc7
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
408 | 419 | | |
409 | 420 | | |
410 | 421 | | |
| |||
0 commit comments