I have implemented my own version if incremental search using an input panel.
I want that panel to go away if it ever loses focus, so I have an on_deactivated handler which checks to see if the view being deactivated is my panel view, and if so, runs the command “close_panel”: view.run_command(“close_panel”). This triggers if I click the mouse in the main view, OR, if I bring up a quick panel.
Shortly thereafter, but not exactly immediately, Sublime crashes and uploads something to the Sublime developers. I hope that information helps! Unfortunately it all happens so fast I have no idea what is causing the problem. But it is very weird. The crash isn’t immediate. I can usually get in a few more editing commands before it crashes.
Ohhhh - the crash occurs the very next time I try to open the input panel! Maybe that’s a clue.
If I change my deactivated handler to be async, the quick panel ends up losing focus so that fixed the crash but I still have a problem.
Thanks.
JP