Skip to content

Commit

Permalink
Fixed: Internal method com.intellij.openapi.fileEditor.impl.EditorWin…
Browse files Browse the repository at this point in the history
…dow.getManager() invocation
  • Loading branch information
hsz committed Oct 16, 2024
1 parent 23a844b commit 74f810d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@ import com.intellij.openapi.vcs.ProjectLevelVcsManager
import com.intellij.openapi.vcs.changes.ChangeListManager
import mobi.hsz.idea.gitignore.IgnoreBundle
import mobi.hsz.idea.gitignore.vcs.IGNORED
import mobi.hsz.idea.gitignore.vcs.IgnoreFileStatusProvider

/**
* Action that closes all opened files that are marked as [IgnoreFileStatusProvider.IGNORED].
* Action that closes all opened files that are marked as ignored.
*/
class CloseIgnoredEditorsAction : CloseEditorsActionBase() {

override fun isFileToClose(editor: EditorComposite, window: EditorWindow, fileEditorManager: FileEditorManagerEx): Boolean {
val project = window.manager.project
val project = fileEditorManager.project
val fileStatusManager = FileStatusManager.getInstance(project) ?: return false
val changeListManager = ChangeListManager.getInstance(project)
return editor.file.run {
Expand Down

0 comments on commit 74f810d

Please sign in to comment.