Avoid 1s delay in completion in debugger fields if session is not stopped on a breakpoint

This commit is contained in:
Natalia Ukhorskaya
2016-04-04 13:57:37 +03:00
parent 473a05b456
commit 3a0caed148
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -28,6 +28,7 @@
- Configure Kotlin: restore all changed files in undo action
- Convert java expression to kotlin when open Evaluate Expression dialog from Variables View
- Fix Evaluate Expression for expression created for array element
- Avoid 1s delay in completion in debugger fields if session is not stopped on a breakpoint
### Java to Kotlin converter
@@ -91,7 +91,7 @@ class KotlinCodeFragmentFactory: CodeFragmentFactory() {
val debuggerContext = DebuggerManagerEx.getInstanceEx(project).context
val debuggerSession = debuggerContext.debuggerSession
if (debuggerSession == null) {
if (debuggerSession == null || debuggerContext.suspendContext == null) {
null
}
else {