Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix collab filtering panics better (#18344)

Conrad Irwinbbf5ed2ba158
diff --git a/crates/collab/src/api/events.rs b/crates/collab/src/api/events.rs
index 1632c2d798e..377741f434c 100644
--- a/crates/collab/src/api/events.rs
+++ b/crates/collab/src/api/events.rs
@@ -364,21 +364,19 @@ pub async fn post_panic(
}
fn report_to_slack(panic: &Panic) -> bool {
- if panic.os_name == "Linux" {
- if panic.payload.contains("ERROR_SURFACE_LOST_KHR") {
- return false;
- }
+ if panic.payload.contains("ERROR_SURFACE_LOST_KHR") {
+ return false;
+ }
- if panic.payload.contains("ERROR_INITIALIZATION_FAILED") {
- return false;
- }
+ if panic.payload.contains("ERROR_INITIALIZATION_FAILED") {
+ return false;
+ }
- if panic
- .payload
- .contains("GPU has crashed, and no debug information is available")
- {
- return false;
- }
+ if panic
+ .payload
+ .contains("GPU has crashed, and no debug information is available")
+ {
+ return false;
}
true