[RIDER] Take into account clientFileEditorManager in hasOpenFiles implementation

(cherry picked from commit cb6cbe3a426922f461ec1e6a01f0cb39b39a7290)

IJ-CR-121034

GitOrigin-RevId: 0e3b36ab5beabf6789fba249fa99f2412346a495
This commit is contained in:
Nikita.Lyubimov
2023-11-29 00:51:42 +00:00
committed by intellij-monorepo-bot
parent 8750ef2fe4
commit a3f7b2acee
@@ -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) {