Fix panel state (#13668)

In the latest update, panel loading occasionally occurred randomly,
either before or after workspace deserialization due to their
asynchronous nature. This update addresses the issue by ensuring panels
restore their state based on serialized data, synchronizing their
loading with workspace deserialization.

Release Notes:

- Fixed [#9638](https://github.com/zed-industries/zed/issues/9638)
- Fixed [#12954](https://github.com/zed-industries/zed/issues/12954)
ed09bb949cYongkang Chen committed on 7/4/2024, 12:38:19 AM· committed by GitHubparent52583fe
2 files changedLine totals unavailable