introduce goto.action.skip.tophits.and.options registry option

allow to disable slow top hit and options providers
right now they create some swing UI for collecting checkboxes ;–(
This commit is contained in:
Sergey Ignatov
2017-05-29 00:07:13 +03:00
parent 61e7a694f2
commit 47a1655258
2 changed files with 7 additions and 2 deletions

View File

@@ -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.
@@ -30,6 +30,7 @@ import com.intellij.openapi.progress.ProgressManager;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.Condition;
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.MinusculeMatcher;
import com.intellij.psi.codeStyle.NameUtil;
@@ -80,6 +81,7 @@ public class GotoActionItemProvider implements ChooseByNameItemProvider {
if (!processAbbreviations(pattern, consumer, dataContext)) return false;
if (!processIntentions(pattern, consumer, dataContext)) return false;
if (!processActions(pattern, everywhere, consumer, dataContext)) return false;
if (Registry.is("goto.action.skip.tophits.and.options")) return true;
if (!processTopHits(pattern, consumer, dataContext)) return false;
if (!processOptions(pattern, consumer, dataContext)) return false;

View File

@@ -1145,4 +1145,7 @@ JavaScript.Language.Service.truncate.traced.messages.description=Truncate traced
runManager.use.schemeManager=false
vfs.use.nio-based.local.refresh.worker=false
ESLint.Language.Service.full.log=false
ESLint.Language.Service.full.log.description=ESLint: include source code fragments with errors info language service messages
ESLint.Language.Service.full.log.description=ESLint: include source code fragments with errors info language service messages
goto.action.skip.tophits.and.options=false
goto.action.skip.tophits.and.options.description=Skip top hits and options in go to action