Enable TestScope-specific color in WebStorm and PhpStorm

This commit is contained in:
Alexander Doroshko
2016-07-19 19:54:10 +03:00
parent 997c4dd185
commit ac5a08d4c0
@@ -57,7 +57,8 @@ public class FileColorsModel implements Cloneable {
static {
predefinedScopeNameToPropertyKey = new THashMap<String, String>();
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");
}