hide and make visible from prev subtasks actions
[idea/community.git] / python / educational-core / student / src / com / jetbrains / edu / learning / StudyTaskManager.java
index b6d9a71b52415de6ad32fbeda0b6ea71366273d8..417814b77e86f11050ad2836edee4e6aa8bd5a95 100644 (file)
@@ -97,6 +97,9 @@ public class StudyTaskManager implements PersistentStateComponent<Element>, Dumb
   }
 
   public JBColor getColor(@NotNull final AnswerPlaceholder placeholder) {
+    if (!placeholder.getUseLength() && placeholder.isActive() && placeholder.getActiveSubtaskInfo().isNeedInsertText()) {
+      return JBColor.LIGHT_GRAY;
+    }
     final StudyStatus status = placeholder.getStatus();
     if (status == StudyStatus.Solved) {
       return JBColor.GREEN;