Merge remote-tracking branch 'origin/patch'

This commit is contained in:
Ryan Kurtz 2022-11-10 01:26:31 -05:00
commit c65c83794f
2 changed files with 26 additions and 12 deletions

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);