Skip to content

Commit

Permalink
Merge pull request #5733 from apache/revert-5709-GCN-1720
Browse files Browse the repository at this point in the history
Revert "Use wait node in VSCode for long running computation of children"
  • Loading branch information
sdedic authored Mar 28, 2023
2 parents 7afb635 + cc41a83 commit 5d14b49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,9 @@ public final CompletionStage<int[]> getChildren(int id) {

public final CompletionStage<Node[]> getChildren(Node nodeOrNull) {
Node node = getNodeOrRoot(nodeOrNull);
return CompletableFuture.completedFuture(node.getChildren().getNodes());
return CompletableFuture.supplyAsync(() -> {
return node.getChildren().getNodes(true);
}, INITIALIZE);
}

public final CompletionStage<Node> getParent(Node node) {
Expand Down
4 changes: 0 additions & 4 deletions java/java.lsp.server/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1012,10 +1012,6 @@
"uriExpression": "nbres:/org/netbeans/modules/db/resources/view.gif",
"codeicon": "open-preview"
},
{
"uriExpression": "nbres:/org/openide/nodes/wait.gif",
"codeicon": "watch"
},
{
"uriExpression": "nbres:/org/netbeans/modules/cloud/oracle/resources/yellow_dot.svg",
"codeicon": "circle-large-outline",
Expand Down

0 comments on commit 5d14b49

Please sign in to comment.