mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
Move registry key to Java plugin (IJ-CR-137130)
GitOrigin-RevId: eb6da35f1760cc93aebed16c46bdc48f08e97353
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a21e97104d
commit
2fce834c88
@@ -72,7 +72,7 @@ public final class LocalRefUseInfo {
|
||||
if (isDeadCodeEnabled && !inLibrary) {
|
||||
return new GlobalUsageHelperBase() {
|
||||
final Map<PsiMember, Boolean> myEntryPointCache = FactoryMap.create((PsiMember member) -> {
|
||||
if (Registry.is("ide.unused.symbol.strict.entry.points") ? deadCodeInspection.isStrictEntryPoint(member) : deadCodeInspection.isEntryPoint(member)) return true;
|
||||
if (Registry.is("java.unused.symbol.strict.entry.points") ? deadCodeInspection.isStrictEntryPoint(member) : deadCodeInspection.isEntryPoint(member)) return true;
|
||||
if (member instanceof PsiClass) {
|
||||
return !JBTreeTraverser
|
||||
.<PsiMember>from(m -> m instanceof PsiClass
|
||||
|
||||
@@ -2318,6 +2318,8 @@
|
||||
presentation="com.intellij.codeInspection.deadCode.UnusedDeclarationPresentation" key="inspection.unused.display.name"
|
||||
editorAttributes="NOT_USED_ELEMENT_ATTRIBUTES"
|
||||
bundle="messages.JavaBundle"/>
|
||||
<registryKey key="java.unused.symbol.strict.entry.points" defaultValue="true"
|
||||
description="Do not consider implicit usages part of the entry points (editor only)"/>
|
||||
<registryKey defaultValue="false"
|
||||
description="Use shallow unused declaration analysis in batch mode (like in the editor, Java only)"
|
||||
key="java.unused.declaration.inspection.use.shallow.local.anaysis.as.global"/>
|
||||
|
||||
@@ -478,8 +478,6 @@ ide.unused.symbol.calculation.maxFilesToSearchUsagesIn=10
|
||||
ide.unused.symbol.calculation.maxFilesToSearchUsagesIn.description=Max number of scanned files to find usages of symbol
|
||||
ide.unused.symbol.calculation.maxFilesSizeToSearchUsagesIn=524288
|
||||
ide.unused.symbol.calculation.maxFilesSizeToSearchUsagesIn.description=Max files size in bytes to find usages of symbol in case there are a few files
|
||||
ide.unused.symbol.strict.entry.points=true
|
||||
ide.unused.symbol.strict.entry.points.description=Do not consider implicit usages part of the entry points (editor only)
|
||||
|
||||
ide.tabbedPane.dragOutMultiplier=0.1
|
||||
ide.tabbedPane.dragOutMultiplier.description=A threshold to define if editor tab drag&drop is intentional (ratio of tab size)
|
||||
|
||||
Reference in New Issue
Block a user