mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Do not load inspection description while highlighting inspection problems
This commit reverts 9371b2211e.
It is unnecessary to load inspection description without explicit
request because it is rarely needed. And original commit also breaks
"SpellcheckerPerformanceTest.testLargeTextFileWithManyTypos()".
This commit is contained in:
+6
-11
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2016 JetBrains s.r.o.
|
||||
* Copyright 2000-2017 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -71,8 +71,6 @@ import java.util.*;
|
||||
import java.util.concurrent.ConcurrentMap;
|
||||
import java.util.function.Function;
|
||||
|
||||
import static com.intellij.openapi.util.text.StringUtil.isEmpty;
|
||||
|
||||
/**
|
||||
* @author max
|
||||
*/
|
||||
@@ -556,14 +554,11 @@ public class LocalInspectionsPass extends ProgressableTextEditorHighlightingPass
|
||||
|
||||
HighlightInfoType type = new HighlightInfoType.HighlightInfoTypeImpl(level.getSeverity(element), level.getAttributesKey());
|
||||
final String plainMessage = message.startsWith("<html>") ? StringUtil.unescapeXml(XmlStringUtil.stripHtml(message).replaceAll("<[^>]*>", "")) : message;
|
||||
@NonNls String link = "";
|
||||
if (!isEmpty(tool.loadDescription())) {
|
||||
link = " <a "
|
||||
+ "href=\"#inspection/" + tool.getShortName() + "\""
|
||||
+ (UIUtil.isUnderDarcula() ? " color=\"7AB4C9\" " : "")
|
||||
+ ">" + DaemonBundle.message("inspection.extended.description")
|
||||
+ "</a> " + myShortcutText;
|
||||
}
|
||||
@NonNls final String link = " <a "
|
||||
+"href=\"#inspection/" + tool.getShortName() + "\""
|
||||
+ (UIUtil.isUnderDarcula() ? " color=\"7AB4C9\" " : "")
|
||||
+">" + DaemonBundle.message("inspection.extended.description")
|
||||
+"</a> " + myShortcutText;
|
||||
|
||||
@NonNls String tooltip = null;
|
||||
if (descriptor.showTooltip()) {
|
||||
|
||||
Reference in New Issue
Block a user