crashes: Avoid crash handler on detached threads (#40883)

Set a TLS bit to skip invoking the crash handler when a detached thread
panics.

cc @P1n3appl3 - is this at odds with what we need the crash handler to
do?

May close #39289, cannot repro without a nightly build

Release Notes:

- Fixed extension panics crashing Zed on Linux

Co-authored-by: dino <dinojoaocosta@gmail.com>
68707ffc74Nia committed on 10/23/2025, 9:04:22 PM· committed by GitHubparent1ce9a85
5 files changedLine totals unavailable