Skip to content

Commit ed5d656

Browse files
committed
Unwrap NoContributionException.
1 parent 6bdfa97 commit ed5d656

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

rascal-lsp/src/main/java/org/rascalmpl/vscode/lsp/TextDocumentState.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public CompletableFuture<Versioned<ITree>> getCurrentTreeAsync(boolean allowReco
132132
}
133133

134134
/**
135-
* Wait for current tree to parse. Then return the last tree that matches the allowRecoveredErrors conditation.
135+
* Wait for current tree to parse. Then return the last tree that matches the allowRecoveredErrors condition.
136136
* @param allowRecoveredErrors if false, the result will not contain a tree with recovered errors.
137137
* @return the last parse tree, or an exception if non existed.
138138
*/

rascal-lsp/src/main/java/org/rascalmpl/vscode/lsp/parametric/NoContributions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public String getName() {
8787

8888
@Override
8989
public CompletableFuture<ITree> parsing(ISourceLocation loc, String input) {
90-
return CompletableFuture.failedFuture(new NoContributionException("parsing"));
90+
throw new NoContributionException("parsing");
9191
}
9292

9393
@Override

0 commit comments

Comments
 (0)