Continuation added to updateRuntime()
This commit is contained in:
@@ -222,7 +222,8 @@ public class KotlinRuntimeLibraryUtil {
|
||||
|
||||
public static void updateRuntime(
|
||||
@NotNull final Project project,
|
||||
@NotNull final Runnable jarNotFoundHandler
|
||||
@NotNull final Runnable jarNotFoundHandler,
|
||||
@Nullable final Runnable continuation
|
||||
) {
|
||||
ApplicationManager.getApplication().invokeLater(new Runnable() {
|
||||
@Override
|
||||
@@ -241,7 +242,7 @@ public class KotlinRuntimeLibraryUtil {
|
||||
catch (IOException e) {
|
||||
throw new AssertionError(e);
|
||||
}
|
||||
runtimeJar.refresh(true, true);
|
||||
runtimeJar.refresh(true, true, continuation);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ public class OutdatedKotlinRuntimeNotification extends AbstractProjectComponent
|
||||
"kotlin-runtime.jar is not found. Make sure plugin is properly installed.",
|
||||
"No Runtime Found");
|
||||
}
|
||||
});
|
||||
}, null);
|
||||
}
|
||||
else if ("ignore".equals(event.getDescription())) {
|
||||
PropertiesComponent.getInstance(myProject).setValue(SUPPRESSED_PROPERTY_NAME, pluginVersion);
|
||||
|
||||
Reference in New Issue
Block a user