You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Correctly view non-text files in single file window and Open Quickly (#1820)
* add `updateStatusBarInfo` view modifier
* fix QuickLook previews in single file window
* change `fileURL` type to `NSURL` in `AnyFileView`
* fix QuickLook previews in Open Quickly
Use `dismantleNSView` in `AnyFileView` to prevent crashes when using Open Quickly.
What crashes?
1. When using Open Quickly without the workaround in `AnyFileView`, search for a media file (.png, .gif, .mp4, etc)
2. Press escape to close Open Quickly
3. re-open Open Quickly. The media preview is gone
4. Attempt to navigate upwards or downwards using the arrow buttons
5. A crash occurs (QuickLook is attempting to reuse an already closed preview)
* add assertionFailure in `CodeEditWindowController.openQuickly` for when an editorManager or statusBarViewModel is unavailable
* make `UpdateStatusBarInfo.fileURL` an optional
* remove the need to pass environment objects to `NonTextFileView`
This also prevents Open Quickly previews from updating the status bar
* rename function parameters in `UpdateStatusBarInfo` view modifier
* remove `updateStatusBarInfo` view extension
* remove guard in `CodeEditWindowController.openQuickly`
editorManager and statusBarViewModel environment objects are not used in Open Quickly anymore
* merge #1822 fix into this branch
allow files with a utType that is neither image nor PDF to be previewed (#1822)
0 commit comments