diff --git a/src/tree-view/xml-tree-data-provider.ts b/src/tree-view/xml-tree-data-provider.ts index 1adf469..cf4305f 100644 --- a/src/tree-view/xml-tree-data-provider.ts +++ b/src/tree-view/xml-tree-data-provider.ts @@ -22,6 +22,8 @@ export class XmlTreeDataProvider implements TreeDataProvider { workspace.onDidChangeTextDocument(() => { this._refreshTree(); }); + + this._refreshTree(); } onDidChangeTreeData = this._onDidChangeTreeData.event;