Skip to content

Commit

Permalink
Invalidating flattenedEditors cache when closing an editor
Browse files Browse the repository at this point in the history
  • Loading branch information
austincondiff committed Mar 11, 2024
1 parent 5ef954a commit afa32e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CodeEdit/Features/Editor/Models/Editor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ final class Editor: ObservableObject, Identifiable {
/// Closes the editor.
func close() {
parent?.closeEditor(with: id)
editorManager.updateCachedFlattenedEditors = true
}

/// Gets the editor layout.
Expand Down

0 comments on commit afa32e3

Please sign in to comment.