mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
SSR: fix JS tests
This commit is contained in:
+6
@@ -27,6 +27,7 @@ import com.intellij.structuralsearch.plugin.ui.Configuration;
|
||||
import org.jetbrains.annotations.Contract;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.annotations.TestOnly;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
@@ -102,6 +103,11 @@ public class StructuralSearchUtil {
|
||||
return ourDefaultFileType;
|
||||
}
|
||||
|
||||
@TestOnly
|
||||
public static void clearProfileCache(@NotNull Language language) {
|
||||
language.putUserData(STRUCTURAL_SEARCH_PROFILE_KEY, null);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static StructuralSearchProfile getProfileByLanguage(@NotNull Language language) {
|
||||
final StructuralSearchProfile cachedProfile = language.getUserData(STRUCTURAL_SEARCH_PROFILE_KEY);
|
||||
|
||||
Reference in New Issue
Block a user