Skip to content
This repository has been archived by the owner on May 16, 2022. It is now read-only.

Commit

Permalink
Add option to always show the coroutines debugger panel
Browse files Browse the repository at this point in the history
KTIJ-2455

GitOrigin-RevId: fb1fea03e08352d08b786cfa86c2fe4e874682a1
  • Loading branch information
Pierfrancesco Soffritti authored and kotlin-ide-monorepo-bot committed Jun 18, 2021
1 parent 3d53d29 commit 4c73dfd
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ class DebuggerConnection(
val project: Project,
val configuration: RunConfigurationBase<*>,
val params: JavaParameters?,
modifyArgs: Boolean = true
modifyArgs: Boolean = true,
val alwaysShowPanel: Boolean = false
) : XDebuggerManagerListener, Disposable {
private var connection: MessageBusConnection? = null
private val coroutineAgentAttached: Boolean
Expand Down Expand Up @@ -87,7 +88,7 @@ class DebuggerConnection(
return xCoroutineThreadView
}

private fun coroutinesPanelShouldBeShown() = configuration is ExternalSystemRunConfiguration || coroutineAgentAttached
private fun coroutinesPanelShouldBeShown() = alwaysShowPanel || configuration is ExternalSystemRunConfiguration || coroutineAgentAttached

private fun createContent(ui: RunnerLayoutUi, createContentParamProvider: CreateContentParamsProvider): Content {
val param = createContentParamProvider.createContentParams()
Expand Down

0 comments on commit 4c73dfd

Please sign in to comment.