Pull app / OS info out of GPUI, add Linux information, make fallible window initialization (#12869)
TODO: - [x] Finish GPUI changes on other operating systems This is a largely internal change to how we report data to our diagnostics and telemetry. This PR also includes an update to our blade backend which allows us to report errors in a more useful way when failing to initialize blade. Release Notes: - N/A --------- Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
parent
ec9e700e70
commit
80c14c9198
50 changed files with 571 additions and 550 deletions
|
@ -308,6 +308,14 @@ pub async fn post_panic(
|
|||
.map_err(|_| Error::Http(StatusCode::BAD_REQUEST, "invalid json".into()))?;
|
||||
let panic = report.panic;
|
||||
|
||||
// better OS reporting for linux (because linux is hard):
|
||||
// - Remove os_version/app_version/os_name from the gpui platform trait
|
||||
// - Move platform processing data into client/telemetry
|
||||
// - Duplicate some small code in macOS platform for a version check
|
||||
// - Add GPUI API for reporting the selected platform integration
|
||||
// - macos-blade, macos-metal, linux-X11, linux-headless
|
||||
// if cfg(macos( { "Macos" } else { "Linux-{cx.compositor_name()"} ))
|
||||
|
||||
tracing::error!(
|
||||
service = "client",
|
||||
version = %panic.app_version,
|
||||
|
|
|
@ -161,7 +161,7 @@ impl TestServer {
|
|||
}
|
||||
let settings = SettingsStore::test(cx);
|
||||
cx.set_global(settings);
|
||||
release_channel::init("0.0.0", cx);
|
||||
release_channel::init(SemanticVersion::default(), cx);
|
||||
client::init_settings(cx);
|
||||
});
|
||||
|
||||
|
@ -327,7 +327,7 @@ impl TestServer {
|
|||
}
|
||||
let settings = SettingsStore::test(cx);
|
||||
cx.set_global(settings);
|
||||
release_channel::init("0.0.0", cx);
|
||||
release_channel::init(SemanticVersion::default(), cx);
|
||||
client::init_settings(cx);
|
||||
});
|
||||
let (dev_server_id, _) = split_dev_server_token(&access_token).unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue