windows: Show error messages when zed failed to lanuch (#32537)

Now, if either `WindowsPlatform` or `BladeRenderer` fails to initialize,
a window will pop up to notify the user.


![image](https://github.com/user-attachments/assets/40fe7f1d-5218-4ee2-b4ec-0945fed2b743)


Release Notes:

- N/A
This commit is contained in:
张小白
2025-06-11 18:37:34 +08:00
committed by GitHub
parent 7d5a5d0984
commit a3cc063107
5 changed files with 33 additions and 13 deletions
@@ -342,7 +342,7 @@ impl BladeRenderer {
let surface = context
.gpu
.create_surface_configured(window, surface_config)
.unwrap();
.map_err(|err| anyhow::anyhow!("Failed to create surface: {err:?}"))?;
let command_encoder = context.gpu.create_command_encoder(gpu::CommandEncoderDesc {
name: "main",