Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TreeError [latex-workshop-structure] Data tree node not found: [object Object] #160784

Merged
merged 1 commit into from Sep 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/vs/workbench/browser/parts/views/treeView.ts
Expand Up @@ -856,11 +856,17 @@ abstract class AbstractTreeView extends Disposable implements ITreeView {

async expand(itemOrItems: ITreeItem | ITreeItem[]): Promise<void> {
const tree = this.tree;
if (tree) {
if (!tree) {
return;
}
try {
itemOrItems = Array.isArray(itemOrItems) ? itemOrItems : [itemOrItems];
await Promise.all(itemOrItems.map(element => {
return tree.expand(element, false);
}));
} catch (e) {
// The extension could have changed the tree during the reveal.
// Because of that, we ignore errors.
}
}

Expand Down