Remove panic when programatically updating an invalid setting

This commit is contained in:
Max Brunsfeld 2023-06-13 09:43:57 -07:00
parent 5e68dc5c92
commit 1cd11bfe66
2 changed files with 32 additions and 41 deletions

View file

@ -7272,7 +7272,7 @@ impl Editor {
let vim_mode = cx
.global::<SettingsStore>()
.untyped_user_settings()
.raw_user_settings()
.get("vim_mode")
== Some(&serde_json::Value::Bool(true));
let telemetry_settings = *settings::get::<TelemetrySettings>(cx);