Fix regression on debug redirect output causeof DTLK API break:BUG419273
diff --git a/plugins/org.eclipse.ldt.debug.core/src/org/eclipse/ldt/debug/core/internal/local/LuaLaunchConfigurationDelegate.java b/plugins/org.eclipse.ldt.debug.core/src/org/eclipse/ldt/debug/core/internal/local/LuaLaunchConfigurationDelegate.java
index 7febb6c..8fd2394 100644
--- a/plugins/org.eclipse.ldt.debug.core/src/org/eclipse/ldt/debug/core/internal/local/LuaLaunchConfigurationDelegate.java
+++ b/plugins/org.eclipse.ldt.debug.core/src/org/eclipse/ldt/debug/core/internal/local/LuaLaunchConfigurationDelegate.java
@@ -21,7 +21,9 @@
import org.eclipse.core.variables.VariablesPlugin;
import org.eclipse.debug.core.ILaunch;
import org.eclipse.debug.core.ILaunchConfiguration;
+import org.eclipse.debug.core.Launch;
import org.eclipse.dltk.compiler.util.Util;
+import org.eclipse.dltk.debug.core.DLTKDebugLaunchConstants;
import org.eclipse.dltk.internal.launching.DLTKLaunchingPlugin;
import org.eclipse.dltk.launching.AbstractScriptLaunchConfigurationDelegate;
import org.eclipse.dltk.launching.IInterpreterInstall;
@@ -52,6 +54,16 @@
return getInterpreterInstall(configuration);
}
+ // TODO Workaround for BUG ECLIPSE 419273
+ @Override
+ protected void setDebugConsoleAttributes(Launch launch, ILaunchConfiguration configuration) throws CoreException {
+ if (!configuration.getAttribute(ScriptLaunchConfigurationConstants.ATTR_DEBUG_CONSOLE, true)) {
+ launch.setAttribute(DLTKDebugLaunchConstants.ATTR_DEBUG_CONSOLE, DLTKDebugLaunchConstants.FALSE);
+ } else {
+ launch.setAttribute(DLTKDebugLaunchConstants.ATTR_DEBUG_CONSOLE, DLTKDebugLaunchConstants.TRUE);
+ }
+ }
+
/**
* Returns the default working directory for the given launch configuration, or <code>null</code> if none. Subclasses may override as necessary.
*