mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-14 12:11:43 +01:00
explorer: ExplorerItem initialize children when a child is being added
fixes #48496
This commit is contained in:
@@ -216,6 +216,9 @@ export class ExplorerItem {
|
||||
* Adds a child element to this folder.
|
||||
*/
|
||||
public addChild(child: ExplorerItem): void {
|
||||
if (!this.children) {
|
||||
this.isDirectory = true;
|
||||
}
|
||||
|
||||
// Inherit some parent properties to child
|
||||
child.parent = this;
|
||||
|
||||
Reference in New Issue
Block a user