mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
IJPL-197966 Fix separate tab contributors creation exception logging
(cherry picked from commit eadc1bb4a205cbe2da2f60beae4885dd85971283) IJ-CR-170020 GitOrigin-RevId: 0d5aea292f6c8b4b1f42119b0310134ad70d7bf6
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5308b0f632
commit
542bcdff6c
@@ -7,6 +7,7 @@ import com.intellij.openapi.actionSystem.AnActionEvent
|
||||
import com.intellij.openapi.actionSystem.DataContext
|
||||
import com.intellij.openapi.application.EDT
|
||||
import com.intellij.openapi.diagnostic.Logger
|
||||
import com.intellij.openapi.diagnostic.getOrLogException
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.openapi.util.Disposer
|
||||
import com.intellij.platform.searchEverywhere.*
|
||||
@@ -134,17 +135,15 @@ class SeProvidersHolder(
|
||||
}
|
||||
|
||||
// From com.intellij.ide.actions.searcheverywhere.SearchEverywhereHeader.createTabs
|
||||
try {
|
||||
(runCatching {
|
||||
withContext(Dispatchers.EDT) {
|
||||
TabsCustomizationStrategy.getInstance().getSeparateTabContributors(allContributors.values.toList())
|
||||
.filterIsInstance<SearchEverywhereContributor<Any>>()
|
||||
.associateBy { SeProviderId(it.searchProviderId) }
|
||||
}
|
||||
}
|
||||
catch (e: Exception) {
|
||||
Logger.getInstance(SearchEverywhereHeader::class.java).error(e)
|
||||
allContributors.filter { it.value.isShownInSeparateTab }
|
||||
}.forEach {
|
||||
}.getOrLogException { t ->
|
||||
Logger.getInstance(SearchEverywhereHeader::class.java).error(t)
|
||||
} ?: allContributors.filter { it.value.isShownInSeparateTab }).forEach {
|
||||
separateTabContributors[it.key] = it.value
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user