mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
more diagnostics about already registered HighlightDisplayKey
GitOrigin-RevId: 9e7531976926c1818c4d836890150c798ecea0ed
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7557c098e4
commit
4c704102e1
@@ -281,6 +281,7 @@ public class InspectionEP extends LanguageExtensionPoint<InspectionProfileEntry>
|
||||
", isInternal=" + isInternal +
|
||||
", getImplementationClassName()='"+getImplementationClassName()+"'" +
|
||||
", language="+language+
|
||||
", pluginDescriptor="+getPluginDescriptor()+
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
||||
+5
-5
@@ -9,6 +9,7 @@ import com.intellij.codeInspection.InspectionProfileEntry;
|
||||
import com.intellij.codeInspection.options.OptionController;
|
||||
import com.intellij.concurrency.ConcurrentCollectionFactory;
|
||||
import com.intellij.configurationStore.SchemeDataHolder;
|
||||
import com.intellij.diagnostic.PluginException;
|
||||
import com.intellij.lang.annotation.HighlightSeverity;
|
||||
import com.intellij.openapi.Disposable;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
@@ -631,11 +632,10 @@ public class InspectionProfileImpl extends NewInspectionProfile {
|
||||
else {
|
||||
key = HighlightDisplayKey.register(shortName, computable, shortName);
|
||||
}
|
||||
}
|
||||
|
||||
if (key == null) {
|
||||
LOG.error(shortName + " ; number of initialized tools: " + myTools.size());
|
||||
return;
|
||||
if (key == null) {
|
||||
PluginException.logPluginError(LOG, "Couldn't register HighlightDisplayKey '"+shortName + "' ; number of initialized tools: " + myTools.size()+"; toolWrapper:"+toolWrapper+"; extension:"+extension, null, toolWrapper.getDescriptionContextClass());
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
HighlightDisplayLevel baseLevel = myBaseProfile != null && myBaseProfile.getToolsOrNull(shortName, project) != null
|
||||
|
||||
Reference in New Issue
Block a user