avoid templatePresentation assertion

GitOrigin-RevId: bc239f98f4d96cd79384aacc94b8cfca9f0be43a
This commit is contained in:
Gregory.Shrago
2024-01-20 02:37:52 +04:00
committed by intellij-monorepo-bot
parent c019fa61c3
commit 26f753e5b4

View File

@@ -526,7 +526,9 @@ public class RunConfigurationsComboBoxAction extends ComboBoxAction implements D
myProject = project;
myConfiguration = configuration;
// TODO for RemDev old action update only, remove ASAP
update(AnActionEvent.createFromDataContext("", getTemplatePresentation(), DataContext.EMPTY_CONTEXT));
Presentation p = getTemplatePresentation().clone();
update(AnActionEvent.createFromDataContext(ActionPlaces.UNKNOWN, p, DataContext.EMPTY_CONTEXT));
getTemplatePresentation().copyFrom(p);
}
public @NotNull RunnerAndConfigurationSettings getConfiguration() {