mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJ-MR-176106-to-253
[pycharm] PY-81494 Fix deadlocking code Merge-request: IJ-MR-179432 Merged-by: David Lysenko <david.lysenko@jetbrains.com> [pycharm] PY-81494 Config fixes PY-81494 [pycharm] PY-81494 Fix further flakiness [pycharm] PY-81494 Address feedback [pycharm] PY-81494 Fix flakiness [pycharm] PY-81494 Separate modules [pycharm] PY-81494 Fix tests [pycharm] PY-81494 Change waitFor to awaitExit for coroutines [pycharm] PY-81494 Configuration fixes [pycharm] PY-81494 Add usage statistics [pycharm] PY-81494 Address feedback [pycharm] PY-81494 Add more limit tests [pycharm] PY-81494 Post-rebase fixes [pycharm] PY-81494 Implement logging tests [pycharm] PY-81494 Final design adjustments [pycharm] PY-81494 Refactor flows [pycharm] PY-81494 Add more OutputSection tests [pycharm] PY-81494 Add Toolbar tests [pycharm] PY-81494 Add InterText tests [pycharm] PY-81494 Add FilterActionGroup tests [pycharm] PY-81494 Add EmptyContainerNotice tests [pycharm] PY-81494 Add CollapsibleListSection tests [pycharm] PY-81494 Add ActionIconButton tests [pycharm] PY-81494 Address feedback [pycharm] PY-81494 Address feedback [pycharm] PY-81494 Post-rebase fixes [pycharm] PY-81494 Address initial feedback [pycharm] PY-81494 Fix existing tests & add new to tree [pycharm] PY-81494 Implement copy to clipboard button [pycharm] PY-81494 Amend design [pycharm] PY-81494 Begin implementing output tests [pycharm] PY-81494 Refactor file structure [pycharm] PY-81494 Implement tests for process list [pycharm] PY-81494 wip tests for process list [pycharm] PY-81494 Finishing touches [pycharm] PY-81494 Consolidate list logic in the model [pycharm] PY-81494 Add logging limits [pycharm] PY-81494 Implement open tool window on exec service error [pycharm] PY-81494 Implement open command in terminal [pycharm] PY-81494 Add expansion actions [pycharm] PY-81494 Implement categorization by coroutine names [pycharm] PY-81494 Memorize expansion states between tool window openings [pycharm] PY-81494 Memorize scroll state between tool window openings [pycharm] PY-81494 Introduce collapsible section for process info [pycharm] PY-81494 Implement view setting filtering [pycharm] PY-81494 Refactor process logging to use shared flows [pycharm] PY-81494 Implement tests for ProcessList composable [pycharm] PY-81494 Implement process toolwindow prototype Merge-request: IJ-MR-176106 Merged-by: David Lysenko <david.lysenko@jetbrains.com> Merge-request: IJ-MR-179303 Merged-by: David Lysenko <david.lysenko@jetbrains.com> GitOrigin-RevId: 44552a582dd628d206b207e02e6f24c7749b4d9f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
bf299d23c2
commit
fc7d863a50
+5
-1
@@ -7,6 +7,8 @@ import com.intellij.openapi.startup.ProjectActivity
|
||||
import com.intellij.platform.eel.provider.getEelDescriptor
|
||||
import com.intellij.python.community.services.systemPython.SystemPythonService
|
||||
import com.intellij.python.community.services.systemPython.getCacheTimeout
|
||||
import com.jetbrains.python.NON_INTERACTIVE_ROOT_TRACE_CONTEXT
|
||||
import kotlinx.coroutines.withContext
|
||||
|
||||
private val logger = fileLogger()
|
||||
|
||||
@@ -15,6 +17,8 @@ internal class SystemPythonInitialLoader : ProjectActivity {
|
||||
override suspend fun execute(project: Project) {
|
||||
if (getCacheTimeout() == null) return // Cache is disabled, no need to preload it
|
||||
logger.debug("Preloading pythons for $project")
|
||||
SystemPythonService().findSystemPythons(project.getEelDescriptor().toEelApi())
|
||||
withContext(NON_INTERACTIVE_ROOT_TRACE_CONTEXT) {
|
||||
SystemPythonService().findSystemPythons(project.getEelDescriptor().toEelApi())
|
||||
}
|
||||
}
|
||||
}
|
||||
+4
-1
@@ -16,6 +16,7 @@ import com.jetbrains.python.PyToolUIInfo
|
||||
import com.intellij.python.community.services.systemPython.SystemPythonServiceImpl.MyServiceState
|
||||
import com.intellij.python.community.services.systemPython.impl.Cache
|
||||
import com.intellij.python.community.services.systemPython.impl.PySystemPythonBundle
|
||||
import com.jetbrains.python.NON_INTERACTIVE_ROOT_TRACE_CONTEXT
|
||||
import com.jetbrains.python.PythonBinary
|
||||
import com.jetbrains.python.Result
|
||||
import com.jetbrains.python.errorProcessing.PyResult
|
||||
@@ -56,7 +57,9 @@ internal class SystemPythonServiceImpl(scope: CoroutineScope) : SystemPythonServ
|
||||
scope.launch {
|
||||
_cacheImpl.complete(getCacheTimeout()?.let { interval ->
|
||||
Cache<EelDescriptor, SystemPython>(scope, interval) { eelDescriptor ->
|
||||
searchPythonsPhysicallyNoCache(eelDescriptor.toEelApi())
|
||||
withContext(NON_INTERACTIVE_ROOT_TRACE_CONTEXT) {
|
||||
searchPythonsPhysicallyNoCache(eelDescriptor.toEelApi())
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user