Fix crash when opening inspector on Windows debug build (#36829)
This commit is contained in:
parent
dd6fce6d4e
commit
54c7d9dc5f
3 changed files with 3 additions and 1 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -8468,6 +8468,7 @@ dependencies = [
|
||||||
"theme",
|
"theme",
|
||||||
"ui",
|
"ui",
|
||||||
"util",
|
"util",
|
||||||
|
"util_macros",
|
||||||
"workspace",
|
"workspace",
|
||||||
"workspace-hack",
|
"workspace-hack",
|
||||||
"zed_actions",
|
"zed_actions",
|
||||||
|
|
|
@ -24,6 +24,7 @@ serde_json_lenient.workspace = true
|
||||||
theme.workspace = true
|
theme.workspace = true
|
||||||
ui.workspace = true
|
ui.workspace = true
|
||||||
util.workspace = true
|
util.workspace = true
|
||||||
|
util_macros.workspace = true
|
||||||
workspace-hack.workspace = true
|
workspace-hack.workspace = true
|
||||||
workspace.workspace = true
|
workspace.workspace = true
|
||||||
zed_actions.workspace = true
|
zed_actions.workspace = true
|
||||||
|
|
|
@ -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
|
/// Path used for unsaved buffer that contains style json. To support the json language server, this
|
||||||
/// matches the name used in the generated schemas.
|
/// 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 {
|
pub(crate) struct DivInspector {
|
||||||
state: State,
|
state: State,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue