mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
registry property to disable injections highlighting
WEB-1475 and WEB-11251 partially fixed
This commit is contained in:
+3
@@ -36,6 +36,7 @@ import com.intellij.openapi.progress.ProgressManager;
|
||||
import com.intellij.openapi.project.DumbAware;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.*;
|
||||
import com.intellij.openapi.util.registry.Registry;
|
||||
import com.intellij.psi.*;
|
||||
import com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil;
|
||||
import com.intellij.psi.impl.source.tree.injected.Place;
|
||||
@@ -72,6 +73,8 @@ public class InjectedGeneralHighlightingPass extends GeneralHighlightingPass imp
|
||||
|
||||
@Override
|
||||
protected void collectInformationWithProgress(@NotNull final ProgressIndicator progress) {
|
||||
if (!Registry.is("editor.injected.highlighting.enabled", true)) return;
|
||||
|
||||
final Set<HighlightInfo> gotHighlights = new THashSet<HighlightInfo>(100);
|
||||
|
||||
final List<PsiElement> inside = new ArrayList<PsiElement>();
|
||||
|
||||
@@ -374,4 +374,7 @@ embed.scene.builder=true
|
||||
dsm.retina.darcula.legend=true
|
||||
dsm.retina.darcula.legend.description=Experimental DSM legend component
|
||||
|
||||
ide.scratch.enabled=false
|
||||
ide.scratch.enabled=false
|
||||
|
||||
editor.injected.highlighting.enabled=true
|
||||
editor.injected.highlighting.enabled.description=Disables injected fragments highlighting (requires project reopening)
|
||||
Reference in New Issue
Block a user