From f5e654662a772c2b9a5b4a4db47221f2e4a726da Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Thu, 29 Jan 2015 12:16:00 +0100 Subject: [PATCH 1/1] silent destroy if no process --- .../src/org/jetbrains/debugger/DebugProcessImpl.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/platform/script-debugger/debugger-ui/src/org/jetbrains/debugger/DebugProcessImpl.java b/platform/script-debugger/debugger-ui/src/org/jetbrains/debugger/DebugProcessImpl.java index 4a680f7c598b..0afe3d26396a 100644 --- a/platform/script-debugger/debugger-ui/src/org/jetbrains/debugger/DebugProcessImpl.java +++ b/platform/script-debugger/debugger-ui/src/org/jetbrains/debugger/DebugProcessImpl.java @@ -7,6 +7,7 @@ import com.intellij.util.Url; import com.intellij.util.containers.ContainerUtil; import com.intellij.util.io.socketConnection.ConnectionStatus; import com.intellij.util.io.socketConnection.SocketConnectionListener; +import com.intellij.xdebugger.DefaultDebugProcessHandler; import com.intellij.xdebugger.XDebugProcess; import com.intellij.xdebugger.XDebugSession; import com.intellij.xdebugger.XExpression; @@ -263,6 +264,13 @@ public abstract class DebugProcessImpl extends XDebugPro @Override protected final ProcessHandler doGetProcessHandler() { - return executionResult != null ? executionResult.getProcessHandler() : null; + return executionResult == null ? new SilentDestroyDebugProcessHandler() : executionResult.getProcessHandler(); + } + + private static final class SilentDestroyDebugProcessHandler extends DefaultDebugProcessHandler { + @Override + public boolean isSilentlyDestroyOnClose() { + return true; + } } } \ No newline at end of file -- 2.32.0