mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-195754 Wrong hint in diff window for function params
This commit is contained in:
@@ -17,6 +17,7 @@ package com.intellij.codeInsight.hints;
|
||||
|
||||
import com.intellij.codeHighlighting.EditorBoundHighlightingPass;
|
||||
import com.intellij.codeInsight.daemon.impl.ParameterHintsPresentationManager;
|
||||
import com.intellij.diff.util.DiffUtil;
|
||||
import com.intellij.lang.Language;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.openapi.editor.Inlay;
|
||||
@@ -71,7 +72,7 @@ public class ParameterHintsPass extends EditorBoundHighlightingPass {
|
||||
|
||||
Language language = myFile.getLanguage();
|
||||
InlayParameterHintsProvider provider = InlayParameterHintsExtension.INSTANCE.forLanguage(language);
|
||||
if (provider == null || !provider.canShowHintsWhenDisabled() && !isEnabled()) return;
|
||||
if (provider == null || !provider.canShowHintsWhenDisabled() && !isEnabled() || DiffUtil.isDiffEditor(myEditor)) return;
|
||||
|
||||
myTraverser.forEach(element -> process(element, provider));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user