mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[RIDER] Take into account clientFileEditorManager in hasOpenFiles implementation
(cherry picked from commit cb6cbe3a426922f461ec1e6a01f0cb39b39a7290) IJ-CR-121034 GitOrigin-RevId: 0e3b36ab5beabf6789fba249fa99f2412346a495
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8750ef2fe4
commit
a3f7b2acee
+7
-1
@@ -1504,7 +1504,13 @@ open class FileEditorManagerImpl(
|
||||
return result
|
||||
}
|
||||
|
||||
override fun hasOpenFiles(): Boolean = !openedComposites.isEmpty()
|
||||
override fun hasOpenFiles(): Boolean {
|
||||
if (!ClientId.isCurrentlyUnderLocalId) {
|
||||
return clientFileEditorManager?.getAllComposites()?.isNotEmpty() ?: false
|
||||
}
|
||||
|
||||
return !openedComposites.isEmpty()
|
||||
}
|
||||
|
||||
override fun getSelectedFiles(): Array<VirtualFile> {
|
||||
if (!initJob.isCompleted) {
|
||||
|
||||
Reference in New Issue
Block a user