Skip to content

Commit

Permalink
Handle interrupt in Rascal callback.
Browse files Browse the repository at this point in the history
  • Loading branch information
toinehartman committed Dec 10, 2024
1 parent af85b8a commit fc17d67
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,11 @@ public InterruptibleFuture<ITuple> getModuleRenames(List<FileRename> fileRenames
var loc = (ISourceLocation) args[0];
try {
return getEditorTreeOrParse(loc, documents).get();
} catch (ExecutionException | InterruptedException | IOException e) {
} catch (ExecutionException | IOException e) {
throw new RuntimeException(e);
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new RuntimeException(String.format("Thread %d was interrupted", Thread.currentThread().getId()));
}
});
try {
Expand Down

0 comments on commit fc17d67

Please sign in to comment.