Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix crash when opening inspector on Windows debug build (#36829)
Chuqiao Feng54c7d9dc5fc9
diff --git a/Cargo.lock b/Cargo.lockindex 0575796034e..c835b503ad2 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -8468,6 +8468,7 @@ dependencies = ["theme","ui","util",+ "util_macros","workspace","workspace-hack","zed_actions",diff --git a/crates/inspector_ui/Cargo.toml b/crates/inspector_ui/Cargo.tomlindex 8e55a8a477e..cefe888974d 100644--- a/crates/inspector_ui/Cargo.toml+++ b/crates/inspector_ui/Cargo.toml@@ -24,6 +24,7 @@ serde_json_lenient.workspace = truetheme.workspace = trueui.workspace = trueutil.workspace = true+util_macros.workspace = trueworkspace-hack.workspace = trueworkspace.workspace = truezed_actions.workspace = truediff --git a/crates/inspector_ui/src/div_inspector.rs b/crates/inspector_ui/src/div_inspector.rsindex 0c2b16b9f49..c3d687e57ad 100644--- a/crates/inspector_ui/src/div_inspector.rs+++ b/crates/inspector_ui/src/div_inspector.rs@@ -25,7 +25,7 @@ use util::split_str_with_ranges;/// Path used for unsaved buffer that contains style json. To support the json language server, this/// matches the name used in the generated schemas.-const ZED_INSPECTOR_STYLE_JSON: &str = "/zed-inspector-style.json";+const ZED_INSPECTOR_STYLE_JSON: &str = util_macros::path!("/zed-inspector-style.json");pub(crate) struct DivInspector {state: State,