Merge remote-tracking branch 'origin/GP-2722_Dan_dontTimeoutTheHuman' into patch

This commit is contained in:
Ryan Kurtz 2022-11-10 01:21:55 -05:00
commit e5db51a070

View File

@ -591,8 +591,11 @@ public abstract class AbstractDebuggerProgramLaunchOffer implements DebuggerProg
monitor.incrementProgress(1);
monitor.setMessage("Launching");
locals.futureTarget = listenForTarget(l.getModel());
if (prompt) {
return launch(l, true, configurator);
}
return AsyncTimer.DEFAULT_TIMER.mark()
.timeOut(launch(l, prompt, configurator), getTimeoutMillis(),
.timeOut(launch(l, false, configurator), getTimeoutMillis(),
() -> onTimedOutLaunch(monitor));
}).thenCompose(__ -> {
checkCancelled(monitor);