mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't show inspections via settings in go to action
we've already have all of them via inspection option descriptors: ON/OFF buttons GitOrigin-RevId: eb3605be2f8d4e1770941d0dbda876a8cb009a10
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a0a81c6d98
commit
82a84b83a8
@@ -17,6 +17,7 @@ import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.progress.ProgressIndicator;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.NotNullLazyValue;
|
||||
import com.intellij.openapi.util.registry.Registry;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import com.intellij.psi.codeStyle.NameUtil;
|
||||
import com.intellij.psi.codeStyle.WordPrefixMatcher;
|
||||
@@ -127,11 +128,13 @@ public class GotoActionItemProvider implements ChooseByNameItemProvider {
|
||||
List<Object> options = new ArrayList<>();
|
||||
final Set<String> words = registrar.getProcessedWords(pattern);
|
||||
Set<OptionDescription> optionDescriptions = null;
|
||||
final String actionManagerName = myActionManager.getComponentName();
|
||||
String actionManagerName = myActionManager.getComponentName();
|
||||
boolean filterOutInspections = Registry.is("go.to.action.filter.out.inspections", true);
|
||||
for (String word : words) {
|
||||
final Set<OptionDescription> descriptions = registrar.getAcceptableDescriptions(word);
|
||||
if (descriptions != null) {
|
||||
descriptions.removeIf(description -> actionManagerName.equals(description.getPath()));
|
||||
descriptions.removeIf(description -> actionManagerName.equals(description.getPath()) ||
|
||||
filterOutInspections && "Inspections".equals(description.getGroupName()));
|
||||
if (!descriptions.isEmpty()) {
|
||||
if (optionDescriptions == null) {
|
||||
optionDescriptions = descriptions;
|
||||
@@ -140,7 +143,8 @@ public class GotoActionItemProvider implements ChooseByNameItemProvider {
|
||||
optionDescriptions.retainAll(descriptions);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
optionDescriptions = null;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -842,6 +842,9 @@ search.everywhere.actions=true
|
||||
search.everywhere.configurations=true
|
||||
search.everywhere.settings=false
|
||||
|
||||
go.to.action.filter.out.inspections=true
|
||||
go.to.action.filter.out.inspections.description=Don't show inspections in Find Action
|
||||
|
||||
svn.use.incoming.optimization=false
|
||||
svn.use.incoming.optimization.description=Use remotely (in svn repository) changed files list to optimize incoming revisions processing
|
||||
svn.lowest.supported.format.for.command.line=1.7.0
|
||||
|
||||
Reference in New Issue
Block a user