Fix crashes when running zed bundled

This commit is contained in:
Max Brunsfeld 2023-05-17 16:53:48 -07:00
parent a9b107f155
commit 5c437e2098
2 changed files with 5 additions and 10 deletions

View file

@ -118,7 +118,7 @@ impl LspAdapter for JsonLspAdapter {
cx: &mut AppContext,
) -> Option<BoxFuture<'static, serde_json::Value>> {
let action_names = cx.all_action_names().collect::<Vec<_>>();
let staff_mode = cx.global::<StaffMode>().0;
let staff_mode = cx.default_global::<StaffMode>().0;
let language_names = &self.languages.language_names();
let settings_schema = cx.global::<SettingsStore>().json_schema(
&SettingsJsonSchemaParams {