Fix server settings (#38477)
In the settings refactor I'd assumed server settings were like project settings. This is not the case, they are in fact the normal user settings; but just read from the server. Release Notes: - N/A
This commit is contained in:
@@ -21678,12 +21678,10 @@ impl Editor {
|
||||
}
|
||||
}
|
||||
|
||||
// todo(settings_refactor) this should not be!
|
||||
fn vim_enabled(cx: &App) -> bool {
|
||||
cx.global::<SettingsStore>()
|
||||
.raw_user_settings()
|
||||
.and_then(|settings| settings.content.vim_mode)
|
||||
== Some(true)
|
||||
vim_mode_setting::VimModeSetting::try_get(cx)
|
||||
.map(|vim_mode| vim_mode.0)
|
||||
.unwrap_or(false)
|
||||
}
|
||||
|
||||
fn process_completion_for_edit(
|
||||
|
||||
Reference in New Issue
Block a user