@@ -8,6 +8,7 @@ import com.intellij.openapi.actionSystem.AnAction
8
8
import com.intellij.openapi.actionSystem.AnActionEvent
9
9
import com.intellij.openapi.actionSystem.Separator
10
10
import com.intellij.openapi.application.runInEdt
11
+ import com.intellij.openapi.project.DumbAwareAction
11
12
import com.intellij.openapi.project.Project
12
13
import icons.AwsIcons
13
14
import kotlinx.coroutines.launch
@@ -82,7 +83,7 @@ class ServiceContainerActions : SingleExplorerNodeActionGroup<EcsServiceNode>("C
82
83
class ContainerLogsAction (
83
84
private val project : Project ,
84
85
private val container : ContainerDetails
85
- ) : AnAction (message("ecs.service.container_logs.action_label"), null , AwsIcons .Resources .CloudWatch .LOGS ) {
86
+ ) : DumbAwareAction (message("ecs.service.container_logs.action_label"), null , AwsIcons .Resources .CloudWatch .LOGS ) {
86
87
87
88
private val logConfiguration: Pair <String , String >? by lazy {
88
89
container.containerDefinition.logConfiguration().takeIf { it.logDriver() == LogDriver .AWSLOGS }?.options()?.let {
@@ -134,7 +135,7 @@ class ContainerLogsAction(
134
135
class ExecuteCommandAction (
135
136
private val project : Project ,
136
137
private val container : ContainerDetails
137
- ) : AnAction (message("ecs.execute_command_run"), null , null ) {
138
+ ) : DumbAwareAction (message("ecs.execute_command_run"), null , null ) {
138
139
private val coroutineScope = projectCoroutineScope(project)
139
140
override fun actionPerformed (e : AnActionEvent ) {
140
141
coroutineScope.launch {
@@ -159,7 +160,7 @@ class ExecuteCommandAction(
159
160
class ExecuteCommandInShellAction (
160
161
private val project : Project ,
161
162
private val container : ContainerDetails
162
- ) : AnAction (message("ecs.execute_command_run_command_in_shell"), null , null ) {
163
+ ) : DumbAwareAction (message("ecs.execute_command_run_command_in_shell"), null , null ) {
163
164
private val coroutineScope = projectCoroutineScope(project)
164
165
override fun actionPerformed (e : AnActionEvent ) {
165
166
coroutineScope.launch {
0 commit comments