From ac5a08d4c084c8016ff31b0e5f3054d227bf1d53 Mon Sep 17 00:00:00 2001 From: Alexander Doroshko Date: Tue, 19 Jul 2016 19:51:50 +0300 Subject: [PATCH] Enable TestScope-specific color in WebStorm and PhpStorm --- .../lang-impl/src/com/intellij/ui/tabs/FileColorsModel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/ui/tabs/FileColorsModel.java b/platform/lang-impl/src/com/intellij/ui/tabs/FileColorsModel.java index 719b0eef9354..d01b7d8a3255 100644 --- a/platform/lang-impl/src/com/intellij/ui/tabs/FileColorsModel.java +++ b/platform/lang-impl/src/com/intellij/ui/tabs/FileColorsModel.java @@ -57,7 +57,8 @@ public class FileColorsModel implements Cloneable { static { predefinedScopeNameToPropertyKey = new THashMap(); predefinedScopeNameToPropertyKey.put(NonProjectFilesScope.NAME, "file.colors.enable.non.project"); - if (PlatformUtils.isIntelliJ() || PlatformUtils.isRubyMine()) { + // These IDEs have TestScope registered (via PackagesScopesProvider or TestScopeProvider) + if (PlatformUtils.isIntelliJ() || PlatformUtils.isRubyMine() || PlatformUtils.isPhpStorm() || PlatformUtils.isWebStorm()) { predefinedScopeNameToPropertyKey.put(TestsScope.NAME, "file.colors.enable.tests"); }