Skip to content

Commit

Permalink
Fix unstable API usage
Browse files Browse the repository at this point in the history
  • Loading branch information
cypressious committed Sep 24, 2024
1 parent 968470e commit 792b62a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ abstract class AbstractOpenAngularAction(

// find existing window where the sibling file is opened and which is not the window
// where the action was performed
val window = fileEditorManager.splitters.windows().firstOrNull {
val window = fileEditorManager.splitters.getWindows().firstOrNull {
!it.hasEditor(myEditor) && it.hasFile(siblingFile)
}

Expand All @@ -49,7 +49,7 @@ abstract class AbstractOpenAngularAction(
} else {
// otherwise, split the current window
val currentWindow =
fileEditorManager.splitters.windows().firstOrNull { it.hasEditor(myEditor) }
fileEditorManager.splitters.getWindows().firstOrNull { it.hasEditor(myEditor) }
?: fileEditorManager.currentWindow

currentWindow?.split(
Expand Down

0 comments on commit 792b62a

Please sign in to comment.