From 3c3beaac4cf50b9ae233da2cd0cd5afdcdc6d862 Mon Sep 17 00:00:00 2001 From: Dennis Ushakov Date: Fri, 14 Feb 2020 16:18:40 +0300 Subject: [PATCH] fix new project id for WS GitOrigin-RevId: 73891742ef9a54b7012848e129a97c6e60406a7b --- .../platform/templates/SaveProjectAsTemplateAction.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/platform/templates/SaveProjectAsTemplateAction.java b/platform/lang-impl/src/com/intellij/platform/templates/SaveProjectAsTemplateAction.java index 788be9543123..c0378321ece8 100644 --- a/platform/lang-impl/src/com/intellij/platform/templates/SaveProjectAsTemplateAction.java +++ b/platform/lang-impl/src/com/intellij/platform/templates/SaveProjectAsTemplateAction.java @@ -196,9 +196,8 @@ public class SaveProjectAsTemplateAction extends AnAction implements DumbAware { } static String getNewProjectActionId() { - if (PlatformUtils.isIntelliJ()) return "NewProject"; + if (PlatformUtils.isIntelliJ() || PlatformUtils.isWebStorm()) return "NewProject"; if (PlatformUtils.isPhpStorm()) return "NewDirectoryProject"; - if (PlatformUtils.isWebStorm()) return "NewWebStormDirectoryProject"; throw new IllegalStateException("Provide new project action id for your IDE"); }