File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ export class DirectoryTreeNode extends TreeNode implements vscode.TreeItem {
124124 if ( ! child . allChildrenViewed ( ) ) {
125125 return false ;
126126 }
127- } else if ( child . checkboxState . state !== vscode . TreeItemCheckboxState . Checked ) {
127+ } else if ( ! child . checkboxState || child . checkboxState . state !== vscode . TreeItemCheckboxState . Checked ) {
128128 return false ;
129129 }
130130 }
Original file line number Diff line number Diff line change @@ -35,9 +35,9 @@ export namespace TreeUtils {
3535 continue ;
3636 }
3737 if ( ! checkedNodes . includes ( selected ) && ! uncheckedNodes . includes ( selected ) ) {
38- if ( selected . checkboxState . state === vscode . TreeItemCheckboxState . Unchecked ) {
38+ if ( selected . checkboxState ? .state === vscode . TreeItemCheckboxState . Unchecked ) {
3939 checkedNodes . push ( selected ) ;
40- } else {
40+ } else if ( selected . checkboxState ?. state === vscode . TreeItemCheckboxState . Checked ) {
4141 uncheckedNodes . push ( selected ) ;
4242 }
4343 }
You can’t perform that action at this time.
0 commit comments