Skip to content

Commit

Permalink
waitForJdtIndex at the beginning of waitForBuild
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed Jan 20, 2025
1 parent 29ce12d commit 24c10f8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ public static void reallyWaitForAutoBuild() {
}

public static void waitForBuild() {
waitForBuild(null);
waitForBuild(new ConsoleLoggingProgressMonitor("BUILD"));
}

public static boolean isAutobuild(boolean enable) {
Expand All @@ -406,6 +406,7 @@ public static boolean setAutobuild(boolean enable) {

public static void waitForBuild(IProgressMonitor monitor) {
try {
waitForJdtIndex();
ResourcesPlugin.getWorkspace().build(IncrementalProjectBuilder.INCREMENTAL_BUILD, monitor);
} catch (CoreException e) {
OperationCanceledException operationCanceledException = new OperationCanceledException(e.getMessage());
Expand Down

0 comments on commit 24c10f8

Please sign in to comment.