Skip to content

Conversation

@thecoolwinter
Copy link
Collaborator

Description

If a workspace is closed via an application quit with a split editor, the editor will allow the user to close all editors when the app is re-opened. This leaves the workspace completely unresponsive with no active editor splits.

To fix, moved logic that should be in EditorManager into that class and cleaned up some files, then added a private state variable to EditorTabBarLeadingAccessories that tracks an "other" editor if it exists. It updates that state variable when the editor manager updates at all now instead of doing the check on a view update.

Related Issues

  • N/A, discovered while implementing tests for the editor UI.

Checklist

  • I read and understood the contributing guide as well as the code of conduct
  • The issues this PR addresses are related to each other
  • My changes generate no new warnings
  • My code builds and runs on my machine
  • My changes are all related to the related issue above
  • I documented my code

Screenshots

main build, after quitting the app with a split open:

editor_layout_broken.mov

Fixed:

editor_layout_fixed.mov

Copy link
Collaborator

@austincondiff austincondiff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really good but it looks like you have a small SwiftLint error.

@thecoolwinter
Copy link
Collaborator Author

@austincondiff fixed!

Copy link
Collaborator

@0xWDG 0xWDG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thecoolwinter thecoolwinter merged commit 9db0309 into CodeEditApp:main Jan 9, 2024
@thecoolwinter thecoolwinter added the bug Something isn't working label Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants