if (runSettings.isExternalServerType()) {
throw new ExecutionException("Local JsTestDriver server running in IDE required for tests debugging");
}
JstdToolWindowManager jstdToolWindowManager = JstdToolWindowManager.getInstance(environment.getProject());
jstdToolWindowManager.setAvailable(true);
JstdServer server = JstdServerRegistry.getInstance().getServer();
final AsyncResult<RunProfileStarter> result = new AsyncResult<RunProfileStarter>();
if (server != null && !server.isStopped()) {
prepareWithServer(environment.getProject(), result, server, runSettings);
return result;
}
jstdToolWindowManager.restartServer(new NullableConsumer<JstdServer>() {
@Override