in rider/src/main/kotlin/com/jetbrains/aspire/rider/actions/dashboard/resource/NavigateToResourceDebugTab.kt [34:49]
override fun updateAction(event: AnActionEvent, resourceService: AspireResource, project: Project) {
val projectPath = resourceService.projectPath?.value
val isUnderDebugger = resourceService.isUnderDebugger
if (projectPath == null || isUnderDebugger != true) {
event.presentation.isEnabledAndVisible = false
return
}
val debugSession = findDebugProfileByProject(projectPath, project)
if (debugSession == null) {
event.presentation.isEnabledAndVisible = false
return
}
event.presentation.isEnabledAndVisible = true
}