Skip to content

Commit

Permalink
Fix regression with workspace filtering change causing exceptions whe…
Browse files Browse the repository at this point in the history
…n searching
  • Loading branch information
Col-E committed Oct 28, 2024
1 parent 26e6693 commit 69ca785
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,10 @@ protected final void search() {
CancellableSearchFeedback feedback;
if (liveResults.get()) {
feedback = new LiveOnlySearchFeedback(result -> {
WorkspaceTreeNode node = WorkspaceTreeNode.getOrInsertIntoTree(root, result.getPath(), false);
TreeItems.expandParents(node);
synchronized (root) {
WorkspaceTreeNode node = WorkspaceTreeNode.getOrInsertIntoTree(root, result.getPath(), false);
TreeItems.expandParents(node);
}
});
CompletableFuture.runAsync(() -> searchService.search(workspace, query, feedback));
} else {
Expand Down

0 comments on commit 69ca785

Please sign in to comment.