File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/vs/workbench/browser/parts/views Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -629,7 +629,7 @@ abstract class AbstractTreeView extends Disposable implements ITreeView {
629
629
630
630
function checkChildren ( currentItem : ITreeItem ) {
631
631
for ( const child of ( currentItem . children ?? [ ] ) ) {
632
- if ( child . checkbox !== undefined && currentItem . checkbox !== undefined ) {
632
+ if ( ( child . checkbox !== undefined ) && ( currentItem . checkbox !== undefined ) && ( child . checkbox . isChecked !== currentItem . checkbox . isChecked ) ) {
633
633
child . checkbox . isChecked = currentItem . checkbox . isChecked ;
634
634
additionalItems . push ( child ) ;
635
635
checkChildren ( child ) ;
@@ -661,11 +661,11 @@ abstract class AbstractTreeView extends Disposable implements ITreeView {
661
661
}
662
662
}
663
663
}
664
- if ( someChecked && ! someUnchecked ) {
664
+ if ( someChecked && ! someUnchecked && ( currentItem . parent . checkbox . isChecked !== true ) ) {
665
665
currentItem . parent . checkbox . isChecked = true ;
666
666
additionalItems . push ( currentItem . parent ) ;
667
667
checkParents ( currentItem . parent ) ;
668
- } else if ( someUnchecked && ! someChecked ) {
668
+ } else if ( someUnchecked && ( currentItem . parent . checkbox . isChecked !== false ) ) {
669
669
currentItem . parent . checkbox . isChecked = false ;
670
670
additionalItems . push ( currentItem . parent ) ;
671
671
checkParents ( currentItem . parent ) ;
You can’t perform that action at this time.
0 commit comments