mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
IDEA-337991 small improovments in SemanticActionSearchEverywhereContributor
GitOrigin-RevId: e1136fdb79bad3ebae02a59514758cb555ea07f4
This commit is contained in:
committed by
intellij-monorepo-bot
parent
9e8bd1ebac
commit
e6bba59a71
@@ -74,8 +74,10 @@ class SemanticActionSearchEverywhereContributor(defaultContributor: ActionSearch
|
||||
progressIndicator: ProgressIndicator,
|
||||
consumer: Processor<in FoundItemDescriptor<MatchedValue>>) {
|
||||
// We wrap the progressIndicator here to make sure we don't run standard search under the same indicator
|
||||
ProgressManager.getInstance().executeProcessUnderProgress(
|
||||
{ fetchElementsConcurrently(pattern, SensitiveProgressWrapper(progressIndicator), consumer) }, progressIndicator)
|
||||
ProgressManager.getInstance().runProcess(
|
||||
{ fetchElementsConcurrently(pattern, SensitiveProgressWrapper(progressIndicator), consumer) },
|
||||
progressIndicator
|
||||
)
|
||||
}
|
||||
|
||||
override fun prepareSemanticDescriptor(descriptor: FoundItemDescriptor<MatchedValue>,
|
||||
@@ -110,7 +112,9 @@ class SemanticActionSearchEverywhereContributor(defaultContributor: ActionSearch
|
||||
doFetchItems(this, presentationProvider, pattern) {
|
||||
val prepareDescriptor = prepareStandardDescriptor(it, knownItems)
|
||||
val descriptor = mutex.withLock { prepareDescriptor() }
|
||||
consumer.process(descriptor)
|
||||
blockingContext {
|
||||
consumer.process(descriptor)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user