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
{{ message }}
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.
FindInFilesDialog() in FindinFiles.js should be a singleton, only one instance should exist. I don't understand why we keep recreating it instead of just resetting it.
The behavior of the modal bar being recreated all the time is a holdover from old CodeMirror code that we copied when originally creating the various find dialogs. I think you're right that it should probably just be a singleton whose content gets swapped out, but we would need to figure out how to make that work for all the various things that use it (find in files, find/replace, and quick open)--some of them behave a little differently. Needs more thought.
Similar issue to #4500. Added a backlog item that should address this and other related bugs: https://trello.com/c/q2B82Zuv. Closing as move to backlog.
@njx@gruehle I say, these are entirely different bugs as they are two different dialog instances. This use-case is to do with the "Find in Files" getting recreating multiple times. Personally, I think they are similar but needs different set of fixes.
I can still take it if you guys are ok. Let me know.
Steps to repro
Results
The modal bar closes.
This broke with the new modal bar animation.
The text was updated successfully, but these errors were encountered: