diff --git a/platform/platform-impl/src/com/intellij/codeInsight/multiverse/EditorFilterUpdater.kt b/platform/platform-impl/src/com/intellij/codeInsight/multiverse/MultiverseEditorFilterUpdater.kt similarity index 61% rename from platform/platform-impl/src/com/intellij/codeInsight/multiverse/EditorFilterUpdater.kt rename to platform/platform-impl/src/com/intellij/codeInsight/multiverse/MultiverseEditorFilterUpdater.kt index 08deec7d385c..d3f88b6fd057 100644 --- a/platform/platform-impl/src/com/intellij/codeInsight/multiverse/EditorFilterUpdater.kt +++ b/platform/platform-impl/src/com/intellij/codeInsight/multiverse/MultiverseEditorFilterUpdater.kt @@ -1,4 +1,4 @@ -// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. +// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.codeInsight.multiverse import com.intellij.openapi.editor.impl.EditorHighlightingPredicate @@ -7,21 +7,21 @@ import com.intellij.openapi.editor.markup.RangeHighlighter import com.intellij.openapi.util.Key import com.intellij.util.application -internal class EditorFilterUpdater : EditorContextManager.ChangeEventListener { +internal class MultiverseEditorFilterUpdater : EditorContextManager.ChangeEventListener { override fun editorContextsChanged(event: EditorContextManager.ChangeEvent) { val editor = event.editor as? EditorImpl ?: return application.invokeLater { - val predicate = EditorSelectedContextsPredicate(event.newContexts) + val predicate = MultiverseEditorSelectedContextsPredicate(event.newContexts) editor.addHighlightingPredicate(editorPredicateKey, predicate) } } } -private class EditorSelectedContextsPredicate(val contexts: EditorSelectedContexts) : EditorHighlightingPredicate { +private class MultiverseEditorSelectedContextsPredicate(val contexts: EditorSelectedContexts) : EditorHighlightingPredicate { override fun shouldRender(highlighter: RangeHighlighter): Boolean { val highlighterContext = highlighter.codeInsightContext ?: return true return highlighterContext in contexts } } -private val editorPredicateKey: Key = Key.create("editorPredicateEquality") +private val editorPredicateKey: Key = Key.create("multiverseEditorPredicateEquality") diff --git a/platform/platform-resources/src/META-INF/PlatformExtensions.xml b/platform/platform-resources/src/META-INF/PlatformExtensions.xml index ed7e402d8699..9ba060bfa9a0 100644 --- a/platform/platform-resources/src/META-INF/PlatformExtensions.xml +++ b/platform/platform-resources/src/META-INF/PlatformExtensions.xml @@ -2112,7 +2112,7 @@ topic="com.intellij.codeInsight.template.TemplateManagerListener"/> -