mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-10 16:58:55 -05:00
do not let uncollapsible node collapse
This commit is contained in:
@@ -234,6 +234,10 @@ export class IndexTreeModel<T extends Exclude<any, undefined>, TFilterData = voi
|
||||
setCollapsed(location: number[], collapsed?: boolean, recursive?: boolean): boolean {
|
||||
const node = this.getTreeNode(location);
|
||||
|
||||
if (!node.collapsible) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (typeof collapsed === 'undefined') {
|
||||
collapsed = !node.collapsed;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user